Rational numbers vs Irrational numbers
A rational number can be written as p/q; an irrational one cannot, so its decimal never ends and never repeats.
Rational numbers
Any number p/q with whole numbers p and q, q ≠ 0.
Irrational numbers
A real number that cannot be written as p/q.
| Rational numbers | Irrational numbers | |
|---|---|---|
| Decimal | Ends or repeats | Never ends, never repeats |
| Examples | 3, −2/7, 0.25, 0.333… | √2, π, √3 + 1 |
| Sum of two of them | Always rational | Can be rational (√2 + (−√2) = 0) |
Example
0.142857142857… repeats, so it is rational (it is 1/7). √2 = 1.41421356… never repeats, so it is irrational.