Back to Explore

MikeMcl/decimal.js

GitHub
1 watchersOpen source

Last release: 11 months ago

decimal.js provides an arbitrary-precision Decimal type for JavaScript, useful when you need accurate calculations on integers, floats, and values that may exceed or lose precision with normal Number arithmetic. It offers a full-featured API that replicates many Number and Math methods, including handling different input formats and additional functions like trigonometric functions, with calculations rounded to a configured number of significant digits.

Project status

  • The repository appears actively maintained, with the most recent upstream push and update on 2025-07-06 (v10.6.0), including TypeScript typing enhancements (BigInt input support in the supported Decimal input types).
  • The apparent update cadence is irregular but shows recent activity, with v10.6.0 following v10.5.0 in about 6 months (2025-01-23 to 2025-07-06), after a much longer gap since v10.4.3 in 2022.

AI summary generated Today

AI-generated from public sources. May be inaccurate. Report

Recent updates

  • v10.6.0

    11 months ago

    v10.6.0 updates the package version metadata and makes a small TypeScript typing enhancement to allow BigInt values in the supported Decimal input types. The release notes were not provided by the publisher, so changes that appear in the repo (type defs and CI config) are not reflected in any documented release messaging.

  • v10.5.0

    1/23/2025

    No release notes were provided for v10.5.0, so the documented change log is missing from the publisher-provided release_notes field. Based on the actual repository diff, this release includes functional changes to numeric behavior (notably acos and signed-zero handling for min/max), plus TypeScript typing updates.

  • v10.4.3

    12/4/2022

    Release v10.4.3 was published on 2022-12-04, but no release notes were provided by the publisher. As a result, the specific changes, potential breaking behavior, and migration actions cannot be determined from the provided data.

  • v10.4.2

    10/12/2022

    This release (v10.4.2) makes a small change to the published type declarations and updates internal version banners. The only functional impact observable from the diff is a TypeScript return type correction for Decimal.sign.

  • v10.4.1

    9/16/2022

    v10.4.1 is a small packaging change release. The code diff shows only version/header updates plus a new Node.js package subpath export entry in package.json, enabling an additional import/require path.

    Features
  • v10.4.0

    8/14/2022

    Release v10.4.0 appears to be a packaging and typing focused update. The published release notes were not provided, but the diff shows changes to the package entry points via package.json "exports" and a TypeScript typing refinement for Decimal.isDecimal.

  • v10.3.1

    6/25/2021

    Release v10.3.1 is a small maintenance release. The only substantive change in the code diff is packaging cleanup, removing the minified builds, along with a large README refresh and version header bumps.

    Breaking
  • v10.3.0

    6/22/2021

    No release notes were provided in the release_notes payload for v10.3.0. The code diff for v10.2.1 to v10.3.0 shows multiple functional additions (Decimal.clamp/clampedTo, Decimal.sum), behavioral changes (numeric string parsing now accepts underscore separators), and a significant internal compatibility change in how Decimal instances are detected.

    BreakingFeatures
  • v10.2.1

    9/28/2020

    v10.2.1 is a small maintenance release. The publisher-provided release notes were not included (none provided), but the repo changelog and code changes indicate a targeted fix to the squareRoot/sqrt implementation.

  • v10.2.0

    5/8/2019

    Release v10.2.0 was published on 2019-05-08, but the publisher did not provide release notes in the provided data. As a result, there is no documented information about new features, fixes, breaking changes, or dependency updates in this release.