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.
# 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.