News for hackers. Stuff that matters.
Re:How to Handle Monetary Values in JavaScript by DataInSolutions on Tuesday October 30, 2018 @05:33PM (#18341463)
My goto for any kind of arbitrary precision math in JavaScript is https://github.com/MikeMcl/big.js

As others have noted, if you're doing any kind of math that involves floating point numbers and you will displaying them to a user, you'll almost certainly want something like this.

While it's not specifically a "Money" class it can form an excellent base for one.

There are no comments on this comment yet.