bignumber.js
A JavaScript library for arbitrary-precision decimal and non-decimal financial arithmetic.
Why consider bignumber.js?
bignumber.js is an open-source arbitrary-precision arithmetic library for JavaScript written by Michael Mclaughlin. It prevents floating-point rounding errors in commercial billing engines, revenue shares, invoice interest rates, and cryptocurrency ledger transactions.
Learn bignumber.js by building
Practical setup notes, real use cases, and copy-ready examples in one focused guide.
In this guide2 sections
Overview of bignumber.js
bignumber.js computes exact monetary totals and corporate tax splits without IEEE 754 precision loss.
Quickstart
npm install bignumber.jsimport BigNumber from 'bignumber.js';const x = new BigNumber(0.1);const y = x.plus(0.2); // '0.3'bignumber.js is licensed under the permissive MIT License.
Related tools
More options with a similar category or technology profile.
activecampaign-api-php
Official ActiveCampaign PHP API client for marketing automation and deal pipelines.
klaviyo-api-python
Official Python SDK for the Klaviyo E-commerce Marketing Automation API.
klaviyo-api-node
Official Node.js SDK for the Klaviyo E-commerce Marketing Automation API.
hubspot-api-python
Official Python client for the HubSpot CRM & Marketing Automation REST APIs.