big.js is a compact JavaScript library for arbitrary-precision decimal arithmetic. It avoids many floating-point accuracy problems that occur with JavaScript’s native Number type. Values are stored using a decimal coefficient, exponent, and sign rather than ordinary binary floating-point representation. Its API supports arithmetic, comparisons, powers, square roots, rounding, and common numeric formatting methods. Precision and rounding behavior can be configured for operations such as division. The library has no runtime dependencies and is only about 6 KB when minified. It supports browsers, Node.js, ES modules, CommonJS, and other JavaScript environments while keeping the API deliberately smaller than bignumber.js or decimal.js.

Features

  • Arbitrary-precision decimal arithmetic
  • Addition, subtraction, multiplication, and division
  • Square roots and integer powers
  • Configurable decimal places and rounding
  • CommonJS and ES module support
  • Dependency-free 6 KB minified library

Project Samples

Project Activity

See All Activity >

Categories

Libraries

License

MIT License

Follow big.js

big.js Web Site

Other Useful Business Software
One Monitoring Tool for IT, OT and Cloud | Free Trial Icon
One Monitoring Tool for IT, OT and Cloud | Free Trial

Vendor-agnostic monitoring across on-prem servers, cloud platforms and OT devices, all in one dashboard. No more tool sprawl.

Modern infrastructure spans data centers, cloud platforms and factory floors, and every blind spot between them is a risk. PRTG supports SNMP, WMI, SSH and other standard protocols to monitor IT, OT and hybrid environments through one customizable dashboard. Build the views your team needs, from network health to application performance, without switching tools. Try PRTG free for 30 days now.
Try PRTG Free
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of big.js!

Additional Project Details

Programming Language

JavaScript

Related Categories

JavaScript Libraries

Registered

2026-10-07