Rounding a Number variable in javascript [duplicate]

Working with float numbers in JS is very tricky. My suggestion is to operate only with smaller units (cents instead of dollars) and then you will only deal with integers and will not have similar issues.

Leave a Comment