#fraction #beetle-fraction

beetle-fraction

functions & structs for doing math with fractions

10 releases

0.3.4 Aug 6, 2023
0.3.3 Jul 2, 2023
0.3.1 Jun 24, 2023
0.2.3 Mar 1, 2023
0.2.0 Dec 30, 2022

#376 in Math

Download history 6/week @ 2024-02-17 7/week @ 2024-02-24 92/week @ 2024-03-30 14/week @ 2024-04-06

106 downloads per month

MIT license

38KB
815 lines

Beetle-Fraction

A set of functions and structs for doing math with rational numbers.

Example program:

fn main() {
let half = frac![1, 2];
assert_eq!(half * half, frac![1, 4]);
}

Dependencies

~475KB