Module:Coordinates: Difference between revisions
Jump to navigation
Jump to search
Content added Content deleted
No edit summary |
No edit summary |
||
Line 338: | Line 338: | ||
local precision = 0 |
local precision = 0 |
||
if not isEmpty(seconds_str) then |
if not isEmpty(seconds_str) then |
||
precision = 5 + math_mod._precision(seconds_str) |
precision = 5 + math.max( math_mod._precision(seconds_str), 0 ); |
||
elseif not isEmpty(minutes_str) then |
elseif not isEmpty(minutes_str) then |
||
precision = 3 + math_mod._precision(minutes_str) |
precision = 3 + math.max( math_mod._precision(minutes_str), 0 ); |
||
else |
else |
||
precision = math_mod._precision(degrees_str) |
precision = math.max( math_mod._precision(degrees_str), 0 ); |
||
end |
end |
||