A lightweight, simple and straight-forward opinionated library for math used in other projects.
Current features are:
```rust use mathio::Fraction;
let frac1 = Fraction::new(2, 3); let frac2 = Fraction::new(3, 6);
asserteq!(frac1 + frac2, Fraction::new(7, 6)); asserteq!(frac1 - frac2, Fraction::new(1, 6)); asserteq!(frac1 * frac2, Fraction::new(1, 3)); asserteq!(frac1 / frac2, Fraction::new(4, 3)); asserteq!(frac1 >= frac_2, true); ```
Released under both APACHE and MIT licenses. Pick one that suits you the most!