Rationals
Rationals represents the domain of rational numbers, as in x ∈ Rationals.
Examples
Test membership:
Element[3/4, Rationals]
(* True *)Pi is not rational:
Element[Pi, Rationals]
(* False *)Please visit the official Wolfram Language Reference for more details.