Skip to content
Add fraction support.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
Fraction
Tester
.gitattributes
.gitignore
Fraction.sln
LICENSE
README.md

README.md

Fraction

Add fraction support.

Supported platform: NetCore 1, NetCore 2, NetFx 4, NetStd 1.3, NetStd 2.0

Known Issue

Using an instance built by default parameterless constructor will cause exception or miscalculation. To avoid this, always use parameter-based constructors. This will not be fixed due to consideration about running speed.

Example

Fraction a = new Fraction(2, 3);   // 2/3
Fraction b = 100;  // 100
Fraction c = new Fraction("50 1/2"); //50 1/2
Fraction d = a + b;

Nuget

https://www.nuget.org/packages/fraction/

You can’t perform that action at this time.