Skip to content

Releases: aprismatic/bigfraction

Added Abs(), fixed bugs in comparison

Choose a tag to compare

@bazzilic bazzilic released this 12 Sep 17:03
  • 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

Choose a tag to compare

@bazzilic bazzilic released this 18 Apr 12:31
1a36a11

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

Optimizations

Choose a tag to compare

@bazzilic bazzilic released this 21 Aug 10:23
38c988b

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)

Choose a tag to compare

@bazzilic bazzilic released this 19 Aug 14:49
e2d0cc8
Merge pull request #8 from aprismatic/one_n_zero

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

Fields for optimization

Choose a tag to compare

@bazzilic bazzilic released this 29 May 16:49
d9b4d1d
Merge pull request #7 from aprismatic/sign

Fields for optimization

Release NuGet Packages

Choose a tag to compare

@cheziyi cheziyi released this 17 Mar 17:54
0.1.2

Release nuget package as artifact