fn limit_denominator(num: u128, den: u128, max_den: u128) -> (u128, u128)Expand description
The fraction nearest num / den whose denominator is at most max_den, in lowest terms:
the last continued-fraction convergent within the bound, or the semiconvergent past it where
that lies nearer.