21

Floating point number problem in Javascript

Comments
  • 2
    I don't think this is js exclusive problem.
    That's why you must use Decimal in java for currency for example.
  • 0
    That's how binary floating point arithmetic works though. You cannot have 0.1 as a 'round' floating point number in binary.
  • 0
    It's not javascript
Add Comment