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
Paessler: Easy to Use With Enterprise Power. Free Trial Icon
Paessler: Easy to Use With Enterprise Power. Free Trial

A low-code dashboard makes monitoring intuitive for any admin, while scripting and custom sensors give experts full control.

You shouldn't have to choose between a monitoring tool that's easy to use and one that's powerful enough for a complex environment. PRTG's low-code interface lets any admin build dashboards, set alerts and monitor devices without scripting, while custom sensors and full API access are there when your team needs deeper control. One platform, no compromise. Download a free 30-day trial now.
Get Free Download
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

14 hours ago