Module:Coordinates: Difference between revisions

Jump to navigation Jump to search
Content added Content deleted
No edit summary
No edit summary
Line 257: Line 257:
local s = math_mod._round(coordinate, 0) % 60
local s = math_mod._round(coordinate, 0) % 60
coordinate = (coordinate - s) / 60;
coordinate = (coordinate - s) / 60;
local m = math_mod._round(coordinate, 0) % 60
local m = math.floor(coordinate % 60)
coordinate = (coordinate - m) / 60;
coordinate = (coordinate - m) / 60;
local d = math.floor(coordinate % 360) .."°"
local d = math.floor(coordinate % 360) .."°"