the number to round.
the number of decimal points.
the rounding function to use.
The rounded number.
if the given number is not finite or NaN.
roundWith(1.2345, 2);;
//=> 1.23
roundWith(1.2345, 2, Math.ceil);;
//=> 1.24
Generated using TypeDoc
Round a given number with a given precision and rounding function. Shifts with exponential notation to avoid floating-point issues.