Content deleted Content added
Partial sync with sandbox: Add separate anchor override |
m Fixing formatting of primary unit |
||
Line 49:
end
else -- If the length in kilometers was passed, the computed lengths table will simply contain the passed length.
length.mi = round(km, tostring(prec))
end
if not mi then -- The same as above, but this time converting kilometers to mile if necessary.
Line 60 ⟶ 61:
end
else -- And if the length in miles was passed:
length.mi = round(mi, tostring(prec)) -- and format it appropriately
end
return length -- Return the length table with the computed lengths.
|