awesome-repositories.com
Blog
MCP
awesome-repositories.com

Discover the best open-source repositories with AI-powered search.

ExploreCurated searchesOpen-source alternativesSelf-hosted softwareBlogSitemap
ProjectMCP serverAboutHow we rankPress
LegalPrivacyTerms
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
MikeMcl avatar

MikeMcl/big.js

0
View on GitHub↗
5,186 stars·415 forks·JavaScript·MIT·13 viewsmikemcl.github.io/big.js↗

Big.js

big.js is an arbitrary-precision decimal library for JavaScript designed to perform exact decimal arithmetic. It provides a set of tools for high-precision addition, subtraction, multiplication, and division to avoid the rounding errors common in binary floating-point representations.

The library allows for the creation of custom number constructors to isolate precision settings and rounding rules for different groups of numbers. It supports configurable global precision and specific rounding behaviors, such as truncate or round half even, for division and power operations.

The capability surface covers basic arithmetic, comparison logic, and the calculation of square roots and integer powers. It also includes high-precision formatting tools to convert numeric values into fixed-point, exponential, or significant-digit strings.

Features

  • Arbitrary Precision Arithmetic - Provides a computational engine for exact decimal arithmetic to eliminate floating-point rounding errors.
  • Decimal Number Validators - Ships a comprehensive set of tools for high-precision addition, subtraction, multiplication, and division.
  • Decimal Rounding Utilities - Includes utilities to round numeric values to a specified number of decimal places.
  • Arbitrary-Precision Division - Divides high-precision decimal numbers and rounds the result to a configurable number of decimal places.
  • Calculation Precision Configurations - Provides configurable precision and rounding settings to ensure consistent results across mathematical calculations.
  • Decimal String Formatting - Converts high-precision decimal values into normal or exponential notation strings.
  • Decimal Arithmetic Types - Provides an exact decimal arithmetic type that maintains consistent alignment by adjusting internal exponents during operations.
  • Arithmetic Operations - Provides high-precision tools for performing fundamental addition, subtraction, multiplication, and modulo operations.
  • Decimal Utility Toolsets - Provides a utility for rounding, formatting, and comparing numeric values with configurable precision.
  • Rounding Modes - Implements various mathematical rounding modes, including half-even and truncation, to manage precision loss.
  • Fixed-Point Representations - Implements internal data structures that store numbers as large integers with a scale factor to eliminate binary floating-point errors.
  • Significant Digit Formatting - Provides the ability to format decimal values rounded to a specific number of significant digits.
  • Custom Constructors - Allows the creation of custom number constructors to maintain independent precision and rounding settings.
  • Numeric String Parsers - Parses numeric inputs as strings to preserve exact precision before internal representation.
  • Arbitrary-Precision Power and Root Calculations - Computes square roots and integer powers of high-precision decimal values.
  • Decimal Square Root Calculators - Computes the square root of a decimal value with configurable rounding and precision.
  • Financial Numeric Precision - Ensures the numeric precision required for currency calculations and accounting data accuracy.
  • High Precision Numerical Analysis - Computes square roots and complex divisions while maintaining a strict number of decimal places.
  • Integer Exponentiation - Calculates the result of a decimal value raised to a specific integer exponent.
  • Numeric String Formatting - Converts numeric values into consistent strings using fixed-point or exponential notation with significant digit rules.
  • Numerical Approximation Methods - Uses iterative numerical approximation methods to calculate square roots until the required precision is achieved.
  • Decimal Comparison Operators - Implements comparison operators to determine if one decimal value is greater than, less than, or equal to another.
  • Arithmetic Precision Isolation - Generates independent constructors to apply distinct precision and rounding rules to different number groups.
  • Numeric and Math Utilities - Lightweight library for arbitrary-precision decimal arithmetic.

Star history

Star history chart for mikemcl/big.jsStar history chart for mikemcl/big.js

How this analysis was created: This summary and feature list were written by an AI model that read the project's README and public documentation pages. Each feature links to the documentation it came from; stars, license and language come straight from the GitHub API. The model does not read the source code, and the analysis is refreshed when the project is re-analysed. Learn more on our About page.

AI search

Explore more awesome repositories

Describe what you need in plain English — the AI ranks thousands of curated open-source projects by relevance.

Start searching with AI

Open-source alternatives to Big.js

Similar open-source projects, ranked by how many features they share with Big.js.
  • mikemcl/bignumber.jsMikeMcl avatar

    MikeMcl/bignumber.js

    7,004View on GitHub↗

    bignumber.js is an arbitrary-precision JavaScript library designed to perform mathematical operations on decimals and integers that exceed the limits of standard floating-point numbers. It functions as a decimal arithmetic engine and a math library for calculating square roots, powers, and modular exponentiation. The project provides a base conversion utility capable of parsing and translating numeric values between any base from 2 to 36. It also includes a numeric formatting tool for rendering high-precision values into localized strings with custom separators and notation styles. The libra

    JavaScript
    View on GitHub↗7,004
  • nefe/number-precisionnefe avatar

    nefe/number-precision

    4,100View on GitHub↗

    number-precision is a JavaScript math library and arbitrary precision arithmetic utility. It provides a set of functions for performing addition, subtraction, multiplication, and division while avoiding the rounding errors common in standard binary floating-point operations. The project focuses on maintaining controlled decimal precision to ensure consistent mathematical output. This makes it applicable for financial calculations where exact currency values are required, as well as for high precision data processing in scientific or technical reports. Its capabilities include precise floatin

    TypeScriptfloating-pointnumber-converterrounding-error
    View on GitHub↗4,100
  • mikemcl/decimal.jsMikeMcl avatar

    MikeMcl/decimal.js

    7,205View on GitHub↗

    decimal.js is a JavaScript arbitrary precision library designed to perform mathematical calculations without the rounding errors associated with standard floating-point numbers. It provides a high-precision math toolkit for executing basic arithmetic and advanced transcendental functions with configurable significant digits. The library implements decimal-based math that supports various rounding modes and arbitrary precision settings. It includes a numeric string parser for converting decimal, hexadecimal, binary, and octal strings into high-precision numeric types, as well as a utility for

    JavaScript
    View on GitHub↗7,205
  • shopspring/decimalshopspring avatar

    shopspring/decimal

    7,242View on GitHub↗

    This is an arbitrary-precision decimal library and fixed-point math implementation used to eliminate floating-point rounding errors. It provides tools for high-precision arithmetic, a numerical analysis toolkit, and a database decimal mapper to ensure numerical accuracy in financial and scientific calculations. The library includes specialized serialization tools to transform high-precision numbers into SQL database types, JSON, and XML formats without losing precision. It also implements a variety of rounding strategies, including banker and cash rounding, and provides mechanisms for decimal

    Gobignumberdecimalsgo
    View on GitHub↗7,242
See all 30 alternatives to Big.js→

Frequently asked questions

What does mikemcl/big.js do?

big.js is an arbitrary-precision decimal library for JavaScript designed to perform exact decimal arithmetic. It provides a set of tools for high-precision addition, subtraction, multiplication, and division to avoid the rounding errors common in binary floating-point representations.

What are the main features of mikemcl/big.js?

The main features of mikemcl/big.js are: Arbitrary Precision Arithmetic, Decimal Number Validators, Decimal Rounding Utilities, Arbitrary-Precision Division, Calculation Precision Configurations, Decimal String Formatting, Decimal Arithmetic Types, Arithmetic Operations.

What are some open-source alternatives to mikemcl/big.js?

Open-source alternatives to mikemcl/big.js include: mikemcl/bignumber.js — bignumber.js is an arbitrary-precision JavaScript library designed to perform mathematical operations on decimals and… nefe/number-precision — number-precision is a JavaScript math library and arbitrary precision arithmetic utility. It provides a set of… mikemcl/decimal.js — decimal.js is a JavaScript arbitrary precision library designed to perform mathematical calculations without the… shopspring/decimal — This is an arbitrary-precision decimal library and fixed-point math implementation used to eliminate floating-point… openexchangerates/accounting.js — accounting.js is a JavaScript library and utility suite for formatting localized numbers and currency strings,… boostorg/boost — Boost is a collection of portable, high-performance source libraries that extend the C++ standard library. It provides…