Template:Round2zero

This template rounds towards zero (aka truncates) a numeric expression to a limited number of decimal places.

Usage

 * Both parameters can be any valid numeric expression.
 * The decimals parameter defaults to 0 and is rounded to the nearest integer.
 * decimals can be negative to round down to a multiple of a power of ten.

Examples


For expressions containing equal signs use 1=expression - the second example fails: