Info
Version: | 1.2.0 |
Author(s): | Allen Cui |
Last Update: | Tuesday, April 2, 2019 |
.NET Fiddle: | Create the first Fiddle |
Project Url: | https://github.com/scegg/Fraction |
NuGet Url: | https://www.nuget.org/packages/fraction |
Install
Install-Package fraction
dotnet add package fraction
paket add fraction
fraction Download (Unzip the "nupkg" after downloading)
Dependencies
.NETCoreApp 1.0
- Microsoft.NETCore.App(>= 1.0.5)
No dependencies.
- NETStandard.Library(>= 1.6.1)
No dependencies.
No dependencies.
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;.