Returns the specified value rounded to specified precision.

Parameters:

value

The value to be rounded.
precision
The precision (number of digits after the decimal point).

The precision can also be negative or zero. When omitted, 0 is assumed.

Examples:


round(3.4)         ==  3
round(-3.4)        == -3
round(3.5)         ==  4
round(3.6)         ==  4
round(-3.6)        == -4
round(1.95583, 2)  ==  1.96
round(1241757, -3) ==  1242000
round(5.045, 2)    ==  5.05
round(5.055, 2)    ==  5.06