Difference between pages "Module:Convert/text" and "Module:Convert/text/sandbox"
(Difference between pages)
m (1 revision imported) |
m (1 revision imported) |
||
Line 289: | Line 289: | ||
["50"] = "opt_round=50", -- round output value to nearest 50 | ["50"] = "opt_round=50", -- round output value to nearest 50 | ||
["each"] = "opt_round_each", -- using default precision in a range, round each output separately (default uses highest precision of each item in range) | ["each"] = "opt_round_each", -- using default precision in a range, round each output separately (default uses highest precision of each item in range) | ||
+ | ["down"] = "opt_round_down", -- can be used with frac=x to round down so the result is never larger than the input | ||
}, | }, | ||
-- sigfig=x is handled as a special case: x must be an integer (possibly in local language) = 1 or more | -- sigfig=x is handled as a special case: x must be an integer (possibly in local language) = 1 or more |