1

Hi I'm currently working on financial application that requires some special financial arithmetic up to the pennies, I've got into problem when I was doing the following computation:

17.83 * 100 ====> 1782.99999999999...

which is obviously yields Math.floor(1782.99999999999...) to 1782

is there a reasonable and safe method for such kind of computation in JavaScript?

Lu4
  • 14,873
  • 15
  • 79
  • 132

0 Answers0