Computes number rounded to precision.
number
precision
The number to round down.
The precision to round down to.
Returns the rounded down number.
4.7.0
round(4.006)// => 4round(4.006, 2)// => 4.01round(4060, -2)// => 4100 Copy
round(4.006)// => 4round(4.006, 2)// => 4.01round(4060, -2)// => 4100
Computes
number
rounded toprecision
.