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



FilledSmallSquareRational is the head used for rational numbers.

FilledSmallSquare You can enter a rational number in the form n/m.

FilledSmallSquare The pattern object _Rational can be used to stand for a rational number. It cannot stand for a single integer.

FilledSmallSquare You have to use Numerator and Denominator to extract parts of Rational numbers.

FilledSmallSquare See The Mathematica Book: Section 3.1.1.

FilledSmallSquare See also: Rationals, Integer, Numerator, Denominator.

Further Examples