package
0.0.0-20240106075236-2e001e6401ef
Repository: https://github.com/agrison/go-commons-lang.git
Documentation: pkg.go.dev

# Functions

GetFraction creates a Fraction instance with the 2 parts of a fraction Y/Z.
GetReducedFraction creates a reduced Fraction instance with the 2 parts of a fraction Y/Z.
GetWholeFraction creates a Fraction instance with the 3 parts of a fraction X Y/Z.
NewFraction constructs a Fraction instance with the 2 parts of a fraction Y/Z.

# Constants

MaxInt is the maximum int value.
MaxUint is the maximum uint value.
MinInt is the minimum int value.
MinUint is the minimum uint value (0).

# Variables

FourFifths is 4/5.
One is 1/1.
OneFifth is 1/5.
OneHalf is 1/2.
OneQuarter is 1/4.
OneThird is 1/3.
ThreeFifths is 3/5.
ThreeQuarters is 3/4.
TwoFifths is 2/5.
TwoQuarters is 2/4.
TwoThirds is 2/3.
Zero is 0/1.

# Structs

Fraction represents a fraction which holds both a numerator and a denominator Definitely needs testing!.