Bignumber.js: Detailed Overview & Metrics

v9.1.2(8 months ago)

This package is actively maintained.Types definitions are bundled with the npm packageNumber of direct dependencies: 0Monthly npm downloads

BigNumber.js is a JavaScript library that provides arbitrary-precision arithmetic for working with large numbers in JavaScript. It allows you to perform accurate calculations with numbers of any size without losing precision or encountering rounding errors. BigNumber.js supports a wide range of mathematical operations such as addition, subtraction, multiplication, division, exponentiation, and more.

Compared to the native JavaScript number type, BigNumber.js offers the ability to work with numbers beyond the limits of standard floating-point numbers. It is particularly useful for financial calculations, cryptography, and any scenario where precision is crucial.

Alternatives:
decimal.js+
big.js+
mathjs+
numbro+
fraction.js+
bignumber+
dinero.js+
accounting-js+
money-math+
currency.js+

Tags: javascriptarbitrary-precisionarithmeticbig-numbersmathematics