pub fn float_to_ratio(value: f64) -> Option<(BigInt, BigInt)>