int_ratio
The type of ratios and related operations.
A ratio is the result of dividing two integers, i.e., the numerator and denominator.
Examples
use Ratio;
let ratio = new; // 1 / 3
assert_eq!; // trunc(20 * 1 / 3) = trunc(6.66..) = 6
assert_eq!; // round(20 * 1 / 3) = round(6.66..) = 7
println!; // Ratio(1/3 ~= 1431655765/4294967296)