Module:Ordnance Survey coordinates/sandbox: Difference between revisions

Content deleted Content added
format to always produce 7 sigfig
fix
Line 445:
LL.lat = LL.lat or 0
LL.long = LL.long or 0
LL.lat = mw.ustring.format('%.7f',ceil(LL.lat*10000000)/10000000)
LL.long = mw.ustring.format('%.7f',ceil(LL.long*10000000)/10000000)
url = url..'params='..mw.ustring.format('%.7f',LL.lat)..'_N_'
if LL.long < 0 then
url = url..mw.ustring.format('%.7f',-LL.long)..'_W'
else
url = url..mw.ustring.format('%.7f',LL.long)..'_E'
end
for i = restargs,#args do