Modul:Math: Unterschied zwischen den Versionen
trailing dot
Keine Bearbeitungszusammenfassung |
(trailing dot) |
||
Zeile 135: | Zeile 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 | if current_precision <= 0 then | ||
if precision >= 0 then | |||
local zero_sep = lang:formatNum( 1.1 ); | |||
formatted_num = formatted_num .. zero_sep:sub(2,2); | |||
formatted_num = formatted_num .. string.rep( '0', precision ); | |||
end | |||
else | else | ||
formatted_num = formatted_num .. string.rep( '0', precision - current_precision ); | formatted_num = formatted_num .. string.rep( '0', precision - current_precision ); |