Skip to content

Releases: aprismatic/bigfraction

Added Abs(), fixed bugs in comparison

12 Sep 17:03
Compare
Choose a tag to compare
  • Added a static method .Abs(BigFraction v) that returns an absolute value
  • Fixed a bug in comparison giving wring results sometimes if denominator is negative

BigFraction is now a readonly struct

18 Apr 12:31
1a36a11
Compare
Choose a tag to compare

Also removed operator %, as it was implemented it didn't make much sense.

Optimizations

21 Aug 10:23
38c988b
Compare
Choose a tag to compare

FromDouble(...) : ~1.5 % avg improvement
ToDecimal(...) : 15-40 % improvement in certain cases (when |Numerator| or |Denominator| > decimal.MaxValue)
(int,int) and (long,long) constructors + more idiomatic checks for zero
2x-2.5x speed up for operations where one of the operands is a BigInteger
More comprehensive testing

Pre-defined popular constants (-1, 0, 1)

19 Aug 14:49
e2d0cc8
Compare
Choose a tag to compare
Merge pull request #8 from aprismatic/one_n_zero

Added static pre-defined values for 1, 0, -1
Bumped xunit version

Fields for optimization

29 May 16:49
d9b4d1d
Compare
Choose a tag to compare
Merge pull request #7 from aprismatic/sign

Fields for optimization

Release NuGet Packages

17 Mar 17:54
Compare
Choose a tag to compare
0.1.2

Release nuget package as artifact