Rounds number to a specific amount of digits.
Value to round
Number of digits (Default: 1)
Rounded value
round(Math.PI, 3); // Returns 3.142 Copy
round(Math.PI, 3); // Returns 3.142
Generated using TypeDoc
Rounds number to a specific amount of digits.