Module:Math: Difference between revisions
no edit summary
m>Dragons flight m (fix) |
m>Dragons flight No edit summary |
||
Line 135: | Line 135: | ||
-- Pad with zeros, if needed | -- Pad with zeros, if needed | ||
if current_precision < precision then | if current_precision < precision then | ||
if current_precision <= 0 then | if current_precision <= 0 and precision > 0 then | ||
local zero_sep = lang:formatNum( 1.1 ); | local zero_sep = lang:formatNum( 1.1 ); | ||
formatted_num = formatted_num .. zero_sep:sub(2,2); | formatted_num = formatted_num .. zero_sep:sub(2,2); |