Simplifies rounding of floating point numbers. Note that if your number ends
with zeros, and you convert the number to string, you will lose the zeroes
at the end. To show the exact number of decimal places, you'll need to use
toFixed(). E.g. round(1.20, 2).toFixed(2).
Simplifies rounding of floating point numbers. Note that if your number ends with zeros, and you convert the number to string, you will lose the zeroes at the end. To show the exact number of decimal places, you'll need to use toFixed(). E.g. round(1.20, 2).toFixed(2).