pub trait ApproximateAssign {
// Required method
fn approximate_assign(&mut self, max_denominator: &Natural);
}Expand description
Replaces a number with the closest Rational whose denominator does not exceed the specified
maximum.
pub trait ApproximateAssign {
// Required method
fn approximate_assign(&mut self, max_denominator: &Natural);
}Replaces a number with the closest Rational whose denominator does not exceed the specified
maximum.