News for hackers. Stuff that matters.
Re:How to Handle Monetary Values in JavaScript by ekke on Tuesday October 30, 2018 @03:44PM (#18340615)

  (1.005).toFixed(2) // Expected rounding to "1.01"
  "1.00"
Re:How to Handle Monetary Values in JavaScript by noselasd on Tuesday October 30, 2018 @03:56PM (#18340733)
cases like that's everywhere.

2.875.toFixed(2) = "2.88" while 2.675.toFixed(2) = "2.67"

7205759403792794 + 1.1 = 7205759403792795

7205759403792794 + 1.9 = 7205759403792796