Trait malachite_q::arithmetic::traits::Approximate
source · [−]pub trait Approximate {
fn approximate(self, max_denominator: &Natural) -> Rational;
}
Expand description
Returns the closest Rational
whose denominator does not exceed the specified maximum.