converts an approximate number x to a nearby rational with small denominator.
yields the rational number with smallest denominator that lies within dx of x.
Examplesopen allclose all
Introduced in 1988
(1.0)| Updated in 1999