Skip to content

Latest commit

 

History

History
100 lines (66 loc) · 4.88 KB

Changelog.md

File metadata and controls

100 lines (66 loc) · 4.88 KB

Changelog

8.0.2

8.0.1

  • Fixed nullable issue in Fraction.TryParse(..) reported in danm-de#76 Error (active) CS8604 Possible null reference argument for parameter 'value' in 'bool Fraction.TryParse(..)

8.0.0

Breaking changes

  • Mathematical operations no longer automatically generate normalized fractions if one of the operands is an non-normalized fraction. This has an impact on your calculations, especially if you have used the JsonFractionConverter with default settings. In such cases, deserialized fractions create non-normalized fractions, which can lead to changed behavior when calling ToString. Please refer the README section Working with non-normalized fractions
  • The default behavior of the .Equals(Fraction) method has changed: Equals now compares the calculated value from the numerator/denominator (1/2 = 2/4).
  • The standard function ToString() now depends on the active culture (CultureInfo.CurrentCulture). The reason is that NaN and Infinity should be displayed in the system language or the corresponding symbol should be used.
  • Argument name for Fraction.TryParse(..) changed from fractionString to value.
  • A fraction of 0/0 no longer has the value 0, but means NaN (not a number). Any fraction in the form x/0 is no longer a valid number. A denominator with the value 0 corresponds to, depending on the numerator, NaN, PositiveInfinity or NegativeInfinity.

7.7.1

7.7.0

7.6.1

7.6.0

7.5.0

7.4.1

7.4.0

7.3.0

7.2.1

  • Updated Newtonsoft.Json to version 13.0.2 (Dependabot)

7.2.0

  • Removed System.Runtime.Numerics dependency. Thanks to @stan-sz danm-de#18

7.1.0

7.0.0

  • Removed unsupported framework DLL netstandard1.1 (Issue #9)
  • Removed deplicated and unecessary framework DLLs net45, net48, net5.0 and netcoreapp3.1 (Issue #9)

6.0.0

  • Breaking change: new Fraction(0, 0).ToString() or new Fraction(0, 3).ToString() returns "0" instead of "0/0"
  • Bugfix: Fraction.Zero.ToString("m") does not longer throw a divide by zero exception (Issue #6)
  • Added new framework DLLs for net48, netstandard2.1, netcoreapp3.1 and net5.0