pub trait Approximate {
    fn approximate(self, max_denominator: &Natural) -> Rational;
}
Expand description

Returns the closest Rational whose denominator does not exceed the specified maximum.

Required Methods

Implementors