A rational number is a number that can be written as a fraction ,
where and are integers and does not equal zero.
Integers, fractions, terminating decimals, and repeating decimals are all rational numbers.
Integers are the whole numbers and their opposites.
{..., −3, −2, −1, 0, 1, 2, 3, ...}
Whole numbers are rational numbers that are greater than or equal to zero.
They do not have a fraction part or a decimal part.
{0, 1, 2, 3, ...}

A set is a subset of another set when every member of the first set is also in the second set.
Whole numbers are a subset of integers.
All whole numbers are integers.
Some, but not all, integers are whole numbers.
For example, −4 is an integer, but it is not a whole number.
Integers are a subset of rational numbers.
All integers are rational numbers.
Some, but not all, rational numbers are integers.
For example, is a rational number, but it is not an integer.