Bignumber.js: Detailed Overview & Metrics

v9.1.2(11 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. BigNumber.js is particularly useful for scenarios where standard JavaScript numbers are insufficient due to their limited precision.

Compared to native JavaScript number handling, BigNumber.js offers the ability to work with numbers of any size, making it ideal for financial calculations, cryptography, and other applications requiring high precision. It is actively maintained and widely used in projects where precise arithmetic operations are crucial.

Alternatives:
decimal.js+
mathjs+
big.js+
fraction.js+
numbro+
bignumber.js-light+
break_infinity.js+
algebra.js+
simple-statistics+
numeric+

Tags: javascriptarbitrary-precisionarithmeticlarge-numbersprecision