Module:Ordnance Survey coordinates/sandbox: Difference between revisions

Content deleted Content added
missed one
trunc, don't round
Tag: Reverted
Line 611:
local northing = tm.northing%100000
local grid = pow(10.0,5.0-prec)
easting = floor(easting/grid+0.5)
northing = floor(northing/grid+0.5)
local fmt = '%0'..prec..'d'
local e = mw.ustring.format(fmt, easting)