Can any one recommend a good JavaScript library to solve floating point problems in JavaScript?
views:
1496answers:
4I realize that you are probably looking for a library that provide extensive functionality beyond that which comes as part of the Math library that is standard in any JavaScript implementation. But, for those users who come across this question in the future:
The Math library that comes as part of the JavaScript standard has set of static functions that can be used to perform even the most awful kinds of math. It can perform trigonometric operations, log, exponents, square roots, and generate random numbers. I would check a reference book or guide for the version of JavaScript I was using to learn more.
The BigDecimal.js library is a javascript port of BigDecimal.java. It does contain a bug, but there's a fix.
In my tests so far it's been 100% accurate.