Round a given number up with a given precision. Shifts with exponential notation to avoid floating-point issues.
the number to round.
the number of decimal points.
The rounded number.
if the given number is not finite or NaN.
roundUp(1.2345, 2);;//=> 1.23roundUp(1.2345);;//=> 2 Copy
roundUp(1.2345, 2);;//=> 1.23roundUp(1.2345);;//=> 2
Generated using TypeDoc
Round a given number up with a given precision. Shifts with exponential notation to avoid floating-point issues.