Module:Coordinates: Difference between revisions

Jump to navigation Jump to search
no edit summary
No edit summary
No edit summary
Line 398:
 
function convert_dec2dms_d(coordinate)
local d = mathmath_mod.floor_round( coordinate + 0.5 ) .. "°"
return d .. ""
end
Line 405:
-- {{#expr:{{{1}}} mod 360}}°{{padleft:{{#expr:({{{1}}} * 600 round 0) mod 600 / 10 round 0}}|2|0}}′
local d = math.floor(coordinate % 360) .."°"
local m = string.format( "%02d′", mathmath_mod.floor_round( mathmath_mod.floor_round(coordinate * 600 + 0.5) % 600 / 10 + 0.5) )
return d .. m
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.

Navigation menu