TiloBox
Back to directory
bignumber.js project preview

bignumber.js

A JavaScript library for arbitrary-precision decimal and non-decimal financial arithmetic.

LicenseMIT
GitHub stars6.5k
Last commit6 days ago
Tags5 topics
Financial Rounding EngineBusinessArbitrary Precision MathInvoice Calculation PrecisionBignumber Js
Overview

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.

Guided learning

Learn bignumber.js by building

Practical setup notes, real use cases, and copy-ready examples in one focused guide.

1 min read 2 sections
In this guide2 sections

Overview of bignumber.js

bignumber.js computes exact monetary totals and corporate tax splits without IEEE 754 precision loss.

Quickstart

bash
1npm install bignumber.js
javascript
1import BigNumber from 'bignumber.js';
2const x = new BigNumber(0.1);
3const 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.

bignumber.js FAQs

bignumber.js is listed as a Business tool on TiloBox. Review the overview, features, and official documentation on this page to decide whether it solves your specific workflow.

Start with the project's GitHub repository and official website for supported installation and deployment instructions. Test the setup with representative data or a small project before rolling it out more widely.

bignumber.js is listed under the MIT license. Read the complete license text and the project's notices before using, modifying, or distributing the software.

Production readiness depends on your requirements. Review maintenance activity, security practices, documentation, backup and upgrade procedures, and compatibility with your stack; then validate it in a non-production environment.

bignumber.js is listed as an alternative to Decimal.js. Compare the core workflow, deployment model, integrations, and licensing against your must-have requirements before switching.