pub fn rational_to_f64(r: &Rational) -> f64
Convert a (small) rational to f64 via bit-shift scaling so neither endpoint overflows during the division.
f64