Module:Coordinates: Difference between revisions

Jump to navigation Jump to search
Content added Content deleted
No edit summary
No edit summary
Line 462: Line 462:
local precision = 0
local precision = 0
if not isEmpty(seconds_str) then
if not isEmpty(seconds_str) then
precision = 5 + coordinates.math_mod._precision(seconds_str)
precision = 5 + math_mod._precision(seconds_str)
elseif not isEmpty(minutes_str) then
elseif not isEmpty(minutes_str) then
precision = 3 + coordinates.math_mod._precision(minutes_str)
precision = 3 + math_mod._precision(minutes_str)
else
else
precision = coordinates.math_mod._precision(degrees_str)
precision = math_mod._precision(degrees_str)
end
end