Rounds the specified value to the specified precision.
value
precision
The number to round.
Optional
The precision to round to.
Number rounded to the specified precision.
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
Rounds the specified
value
to the specifiedprecision
.