Module:Sandbox/BrandonXLF/1: Difference between revisions

Content deleted Content added
No edit summary
No edit summary
Line 2:
local p = {}
function p.main()
args[1] = "6.7"
houoff =if mw.ustring.match (args[1], '[%+%-±−]?%d%.%d+') == args[1] then -- eg: +5.5
houoff = mw.ustring.match (args[1], '%d')
return houoff
minoff = args[1]*100
sign2 = mw.ustring.match (args[1],'[%+%-±−]?')
minoff = minoff-(args[1]*100)
minoff = minoff*0.6
args[1] = table.concat ({houoff,':',minoff})
end
end
return p