An arbitrary-precision Decimal type for JavaScript

added by JavaScript Kicks
12/15/2014 4:07:13 PM

181 Views

The library is similar to bignumber.js, but here precision is specified in terms of significant digits instead of decimal places, and all calculations are rounded to the precision (similar to Python's decimal module) rather than just those involving division. This library also adds exp, ln and log functions, among others, and supports non-integer powers. Another major difference is that this library enables multiple Decimal constructors to be created each with their own configuration.


0 comments