Given
Procedure
Rational numbers: In mathematics, a rational number is a number such as −3/7 that can be expressed as the quotient or fraction p/q of two integers, a numerator p and a non-zero denominator q.
Real numbers: In mathematics, a real number is a value of a continuous quantity that can represent a distance along a line (or alternatively, a quantity that can be represented as an infinite decimal expansion).