A minimal library for representing rational numbers (ratios of integers).
Example
// all rationals are automatically reduced when created, so equality works as following:
let one_half = new;
let two_quarters = new;
assert_eq!;
// you can make more complicated rationals:
let one_half_over_one_quarter = new; // (1/2)/(1/4)
assert_eq!;
// mathematical ops are implemented:
let sum = new + new;
assert_eq!;