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 *)Something isn't working? Report an issue.
Please visit the official Wolfram Language Reference for more details.