Skip to content

Releases: JuliaMath/Decimals.jl

v0.5.1

Choose a tag to compare

@github-actions github-actions released this 03 Mar 08:01

Decimals v0.5.1

Diff since v0.5.0

This version fixes a rounding issue in division. For example, the result of the following used to be 1000 and now is 1100:

Decimals.@with_context (precision=2, rounding=RoundNearest) dec"10500009" / dec"10000"

Merged pull requests:

v0.5.0

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)

v0.4.1

Choose a tag to compare

@julia-tagbot julia-tagbot released this 28 Jan 18:33
v0.4.1

v0.4.1 (2020-01-28)

Diff since v0.4.0

Closed issues:

  • <= not defined for Decimal (#46)
  • float(x) fails (#38)
  • Division of decimals gives incorrect result (#34)
  • Unable to convert to float (#32)
  • Package compatibility caps (#23)
  • Specify precision (#5)

Merged pull requests:

  • Fix Julia compat for patch release (#48) (omus)
  • Add less than or equal to for Decimals (#47) (nicoleepp)
  • Testing LTS and Stable and upcoming release (#43) (oxinabox)
  • Added trunc as another function for rounding (#41) (hurak)
  • Removed REQUIRE as it is deprecated now. (#40) (hurak)
  • Corrected the inv function. (#37) (hurak)
  • Add special case comparisons of Decimal with NaN/Inf (#31) (Keno)

v0.4.0

Choose a tag to compare

@ararslan ararslan released this 21 Feb 20:07
9b2bcec
Merge pull request #30 from invenia/ed/upgrade

Upgrade and fix

v0.3.1

Choose a tag to compare

@ararslan ararslan released this 21 Sep 17:00
bf50901
Add and fix testing on Julia 1.0 (#22)

v0.3.0

Choose a tag to compare

@ararslan ararslan released this 29 Jun 00:44
ca06cc7
Merge pull request #18 from invenia/aa/0.7

Updates for Julia 0.7