Skip to content

Latest commit

 

History

History
95 lines (52 loc) · 2.32 KB

CHANGELOG.md

File metadata and controls

95 lines (52 loc) · 2.32 KB

Changelog

All notable changes to this project will be documented in this file.

The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.

[Unreleased]

[10.0.0] - 2024-01-30

Changed

  • Added an option to cmp to normalize values values before comparison (default is true, i.e., compare mathematical values).

Removed

  • normalize method (can now be safely defined in user space as new Decimal128(x.toString()).
  • Option to normalize strings in the constructor (we now accept the given digit string as-is)

[9.1.0] - 2024-01-26

Added

  • Restore possibility to specify rounding mode in arithmetic operations and constructor (#72)

[9.0.0] - 2024-01-19

Changed

  • Addition, subtraction, multiplication, division, and remainder are now static methods. This is a breaking change.

[8.0.0] - 2024-01-19

Removed

  • sqrt
  • pow
  • reciprocal
  • truncate, floor, and ceil (use round instead)

[7.1.0] - 2023-12-29

Added

  • Rounding modes for all operations (#54)

[7.0.1] - 2023-12-21

Added

  • LICENSE file

Fixed

  • Ensure that the NPM package is nice and lean (#57) by removing unnecessary files and dependencies

[7.0.0] - 2023-12-21

Added

  • toExponentialString: Output a sign (+ or -) in the exponent part. This is a breaking change.
  • Fused multiply-and-add (multiplyAdd)

[6.2.0] - 2023-12-18

Added

  • Square root operation

[6.1.0] - 2023-12-11

Changed

  • Internal change in the representation of not-a-number and +/- infinity. No user-visible changes.

[6.0.0] - 2023-12-08

Added

  • We now support non-normalized decimals, i.e. decimals with a non-zero integer part. This is a breaking change for some use cases. In this approach, trailing zeros are not removed; they are considered significant. For instance, 0.25 plus 0.75 is now 1.00, not 1.

[5.3.0] - 2023-10-25

Added

  • round now takes a number argument (default 0) to specify the index of the decimal digit after which rounding should take place (#45)

[5.2.0] - 2023-10-25

Added

  • pow for raising a decimal to a power (#43)