This is documentation for Mathematica 4, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.1)



FilledSmallSquareRationalize[x] takes Real numbers in x that are close to rationals, and converts them to exact Rational numbers.

FilledSmallSquareRationalize[x, dx] performs the conversion whenever the error made is smaller in magnitude than dx.

FilledSmallSquare Example: Rationalize[3.78] LongRightArrow.

FilledSmallSquareRationalize[x, dx] yields the rational number with the smallest denominator that lies within dx of x.

FilledSmallSquareRationalize[N[Pi]] LongRightArrow does not give a rational number, since there is none "sufficiently close" to N[Pi].

FilledSmallSquare A rational number is considered "sufficiently close" to a Real if , where is chosen to be .

FilledSmallSquareRationalize[x, 0] converts any x to rational form.

FilledSmallSquare See The Mathematica Book: Section 3.1.3.

FilledSmallSquare See also: Chop, Round, ContinuedFraction, LatticeReduce.

FilledSmallSquare Related package: NumberTheory`Rationalize`.

Further Examples