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
Build Agents and Models on One Platform Icon
Build Agents and Models on One Platform

Everything you need to build production-ready agents and models. Access 200+ Google and third-party AI models and tools.

Gemini Enterprise Agent Platform is Google Cloud's comprehensive platform for developers to build, scale, govern, and optimize agents and models. Choose from Google's most advanced models and third-party models like Anthropic's Claude Model Family.
Start 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