الفرق بين المراجعتين لصفحة: «وحدة:Math»
تم حذف المحتوى تمت إضافة المحتوى
Mr. Ibrahem (نقاش | مساهمات) أنشأ الصفحة ب'--This module provides a number of basic mathematical operations. local yesno, getArgs -- lazily initialized local p = {} -- Holds functions to be returned fro...' |
Mr. Ibrahem (نقاش | مساهمات) لا ملخص تعديل |
||
سطر 529:
--En funktion som ska hjälpa Modul:Wikidata att få rätt avrundning på sina siffror
function p.newFromWikidataValue(frame)
local diff = math.abs(tonumber(upeer) - tonumber(frame.amount))
if diff2 > diff then▼
local diff2 = math.abs(tonumber(lower) - tonumber(frame.amount))
diff = diff2▼
end▼
▲ diff = diff2
-- TODO, att fixa så att inte 1234.000 'huggs av' till 1234
local lang = mw.language.new( 'ar' )
|