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