News for hackers. Stuff that matters.
Re:Dinero.js – JavaScript library for working with monetary ... by jessaustin on Monday April 16, 2018 @06:11PM (#16853316)
Sure, but using floats is still the wrong way to handle this. Much better to just decide how much accuracy you need and set up your fixed-point system to handle that. Additionally you might want e.g. rationals to handle any rate that multiplies amounts.

There are no comments on this comment yet.