What is a rational number?
A rational number is any number that can be written as a fraction a/b, where a and b are integers and b is not zero. Examples include 1/2, −3/4, 5 (which is 5/1) and 0.75 (which is 3/4).
The word rational comes from ratio, because a rational number is a ratio of two whole numbers.
What counts as rational
All integers are rational, since any integer n can be written as n/1.
Decimals that end, such as 0.25, are rational. So are decimals that repeat forever in a pattern, such as 0.333..., which equals 1/3, or 0.142857142857..., which equals 1/7.
Irrational numbers
Numbers that cannot be written as a fraction of two integers are called irrational. Their decimals go on forever without repeating.
Famous examples include pi (3.14159...), the square root of 2 (1.41421...) and Euler's number e (2.71828...).
Ancient Greek mathematicians were surprised to discover that the square root of 2 is irrational.
Properties
Adding, subtracting, multiplying or dividing two rational numbers (except dividing by zero) always gives another rational number.
Between any two rational numbers, there is always another rational number, so there are infinitely many of them.
Rational and irrational numbers together make up the real numbers. The set of rational numbers is often written with the symbol ℚ.