on-internet
← Community

How to deal with numbers for finance applications on JavaScript, which lacks an Integer type?

Stack Overflow ·

Finance applications demand an integer type due to security reasons. Rounding errors are not acceptable in that kind of application and can lead to exploits. Since JavaScript doesn't offer a proper Integer type, only IEEE 754 Doubles, how do you deal with monetary values in JavaScript, while keeping it safe?

Comments

Sign in or sign up to comment and upvote.

No comments yet.