Go module for dealing with fractions, and a utility for dividing two numbers and returning the simplified fraction.
> frac 2/5
⅖
> frac 0.8
⅘
> frac 123
123
Use only 100 iterations when creating a fraction that represents the given float:
> frac -m 100 0.777777777
10/13
go install github.com/xyproto/num/cmd/frac@latest
- License: BSD-3