Module:Ordnance Survey coordinates/sandbox: Difference between revisions

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