In mathematics, rational numbers are the numbers that can be written in the form of p/q, where q is not equal to zero, can be expressed as the quotient p/q of two integers, a numerator p and a non-zero denominator q. Since q may be equal to 1, every integer is a rational number. A rational number is a number that is expressed as the ratio of two integers, where the denominator should not be equal to zero. In contrast, an irrational number cannot be expressed in the form of fractions. Rational numbers are terminating decimals, but irrational numbers are non-terminating.