round
Rounds a number to a specified precision.
199 bytes
Usage
The _.round
function rounds a given number to a specified precision.
Precision
The precision
argument is limited to be within the range of -323 to +292.
Without this limit, precision values outside this range can result in NaN.
Rounding Method
You may provide a custom rounding method. The default is Math.round
.