Module:Currency: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 4:
local args = frame:getParent().args
local a = args[1] or args.Amount or args.amount or '0'
valreturn = tonumberp.parse(a)
return p.parse(val)
end
 
function p.parse(a)
val = tonumber(a)
if val == nil then
return nil