Template:Round

This template takes a number and rounds it.


 *  12  -> 12
 *  12  -> 12
 *  13  -> 13
 *  13  -> 13
 *  13  -> 13

Adding a second field, you can specify a number of decimal places to round to.


 *  1  -> 1
 *  1  -> 1
 *  1  -> 1
 *  1  -> 1
 *  1  -> 1
 *  1  -> 1
 *  1  -> 1
 *  1  -> 1
 *  1  -> 1

Using negative numbers, you can specify a number of significant figures to use.


 *  123456790  -> 123456790
 *  123456790  -> 123456790
 *  123456790  -> 123456790
 *  123456790  -> 123456790
 *  123456790  -> 123456790
 *  123456790  -> 123456790
 *  123456790  -> 123456790
 *  123456790  -> 123456790
 *  123456790  -> 123456790

Specifying "up" or "down" in the final parameter truncates or increases the number.


 *  12  -> 12
 *  12  -> 12
 *  12  -> 12
 *  12  -> 12
 *  13  -> 13
 *  13  -> 13
 *  13  -> 13
 *  13  -> 13
 *  13  -> 13
 *  13  -> 13

Specifying decimals places/significant figures and which way to round can work together, as long as which way to round comes after the dp/sf.


 *  5556  -> 5556
 *  5556  -> 5556
 *  5556  -> 5556
 *  5556  -> 5556
 *  5556  -> 5556
 *  5556  -> 5556
 *  5556  -> 5556
 *  5556  -> 5556
 *  5556  -> 5556
 *  5556  -> 5556
 *  5556  -> 5556
 *  5556  -> 5556
 *  5556  -> 5556
 *  5556  -> 5556
 *  5556  -> 5556
 *  5556  -> 5556

This template can also be substituted to imprint the outcome on the page.