الفرق بين المراجعتين لصفحة: «وحدة:Math»

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