Skip to content

v0.5.0

Latest
Compare
Choose a tag to compare
@github-actions github-actions released this 14 Nov 15:29
8df1a58

Decimals v0.5.0

Diff since v0.4.1

This version, 0.5.0, brings huge changes, some of which are breaking.

All of the supported arithmetic operations have been rewritten in order to comply with the decimal floating-point standard. Correctness of the new implementation is supported by a large test suite ("dectests").

The user facing changes are the following:

  • conversions between Decimal and numbers from Base has changed
  • parsing Decimals from strings has changed (and is now more complete)
  • the arguments of normalize and round functions are different
  • users can set so-called context to change the precision (which used to be constant), rounding mode, and minimum/maximum exponent

The current state is described in the new documentation webpage available at http://juliamath.github.io/Decimals.jl/.

Merged pull requests:

Closed issues:

  • Standard test cases (#4)
  • Some problems with dots (#20)
  • parse underscores (#26)
  • significant digits rounding (#27)
  • Decimal not usable as Dict key: no hash method defined (#35)
  • Rounded option in the normalize function (#36)
  • Unclear option normal in round function (#39)
  • Get rid of sign bit? (#44)
  • Constructor loses precision when parsing small numbers expressed in scientific notation ("e" format). (#45)
  • rounding failures (#50)
  • hash(::Decimal) fails (#51)
  • Conversion of scientific floats (#53)
  • Incorrect division of large numbers (#56)
  • Should this library be deprecated? (#61)
  • Wrong result when adding two decimals (#62)
  • Inexact construction of Decimal from float (#85)