Function num_rational::approximate_float

source ยท
pub(crate) fn approximate_float<T, F>(
    val: F,
    max_error: F,
    max_iterations: usize,
) -> Option<Ratio<T>>