pub fn f64_to_rat(x: f64) -> Option<Rat>Expand description
A double as the simplest rational within J’s comparison tolerance of it:
the first continued-fraction convergent that is close enough. An integral
value is exact, so x: 1e30 keeps every digit the double really holds.