📅 You're Invited: Meet the Socket team at RSAC (April 28 – May 1).RSVP
Socket
Sign inDemoInstall
Socket

decimal.js

Package Overview
Dependencies
Maintainers
1
Versions
52
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

decimal.js - npm Package Versions

23456

10.5.0

Diff
mikemcl
published 10.5.0 •

Changelog

Source

10.5.0

  • 23/01/2025
  • #216 TypeScript: instantiation without new keyword
  • #181 Support BigInt
  • #241 Match Math.max and Math.min negative zero handling
  • #217 Compute acos with less cancellation near x = 1
mikemcl
published 10.4.3 •
mikemcl
published 10.4.2 •

Changelog

Source

10.4.2

  • 12/10/2022
  • #209 Correct return type.
mikemcl
published 10.4.1 •

Changelog

Source

10.4.1

  • 16/09/2022
  • #205 Add './decimal' subpath to package.json exports.
mikemcl
published 10.4.0 •

Changelog

Source

10.4.0

  • 14/08/2022
  • #201 Add exports field to package.json.
  • #203 Preserve license comment after bundling.
  • #198 Use type predicate on isDecimal.
mikemcl
published 10.3.1 •

Changelog

Source

10.3.1

  • 25/06/2021
  • Remove minified versions. Refresh README.
mikemcl
published 10.3.0 •

Changelog

Source

10.3.0

  • 22/06/2021
  • Support underscores as separators.
  • #101 Add Decimal.clamp method.
  • #161 Fix Decimal instances deemed plain objects.
  • #100 Add Decimal.sum method.
  • #146 Symbol.for to Symbol['for'] for IE8.
  • #132 Fix possible infinite loop when minE is very low.
  • #180 Accept Decimals of different origin.
  • Update Typescript definitions.
  • Update minification examples in README.
  • Add minified versions for both decimal.js and decimal.mjs.
  • Add files field to package.json, and remove build script.
mikemcl
published 10.2.1 •

Changelog

Source

10.2.1

  • 28/09/2020
  • Correct sqrt initial estimate.
mikemcl
published 10.2.0 •

Changelog

Source

10.2.0

  • 08/05/2019
  • #128 Workaround V8 Math.pow change.
  • #93 Accept + prefix when parsing string values.
  • #129 Fix typo.
mikemcl
published 10.1.1 •

Changelog

Source

10.1.1

  • 27/02/2019
  • Check Symbol properly.