Trait malachite_q::arithmetic::traits::Approximate

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

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

Required Methods§

source

fn approximate(self, max_denominator: &Natural) -> Rational

Implementors§