Template:Convert/round/sandbox
< Template:Convert | round
Jump to navigation
Jump to search
−{{rndpad{{{?}}}|abs(0.0056)|1--3 }}
The Template:Convert/round is a subtemplate of Template:Convert to round each converted amount, using the default rounding algorithm, when neither sigfig=n nor a rounding parameter (such as appending "|1") has been specified by the user. It displays the amount of parameter 2, rounded to the max of either the magnitude of parameter 2 or precision of parameter 1 + parameter 5 - 0.5 + log 2 (as natural logarithm ln 2 / ln 10). The result is then formatted to add commas, if needed.