Theory:

A rational number is a number that can be expressed as (\(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.
Example:
15/13,wherep=15andq=13;q0.12/20,wherep=12andq=20;q0.2/1,wherep=2andq=1;q0.
Difference between a fraction and a rational number:
A number in the rational form pq where \(p\) and \(q\) are whole numbers and \(q ≠ 0\) is known as a fraction, whereas a number in the form pq where \(p\) and \(q\) are integers and \(q ≠ 0\) is known as a rational number.
Example:
1. 32 is a fraction as well as the whole number.
 
2. 32 is a rational number but not a fraction because \(-3\) is not a whole number.
There are different types of fractions:
  
i) Proper fractions
 
ii) Improper fractions
 
iii) Mixed fraction
 
iv) Unit fraction