Corrects a floating number to a given number of decimal places.
fixedRound(5.2345, 2); // 5.23 Copy
fixedRound(5.2345, 2); // 5.23
the value to round
the number of decimals
the rounded value
Corrects a floating number to a given number of decimal places.
Example