Back to Explore

MikeMcl/decimal.js

GitHub
1 watchersOpen source

Last release:

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

  • Active maintenance: The repository shows recent activity, with the last upstream push on 2025-07-06, and subsequent updates at least in 2025 (v10.5.0 on 2025-01-23, v10.6.0 on 2025-07-06), indicating the project is not dormant as of 2026-06-11.
  • Apparent cadence: Recent updates are spaced about 5 to 6 months apart in 2025, but there have also been much longer gaps in earlier years, so the current cadence looks intermittent rather than continuous.

AI summary generated

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

Recent updates

  • v10.6.0

    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

    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

    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

    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

    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

    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

    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

    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

    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

    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.