AQA 7517, section 4.5.1.5
The real numbers, written , are the set of all possible real-world quantities. They include:
- the natural numbers, ;
- the integers, ;
- the rational numbers, ;
- the irrational numbers, such as and .
Every point on a continuous number line is a real number.
How the sets fit together
Written as subsets:
The irrational numbers are the real numbers that are not rational.
Which set does a number belong to?
| Number | ||||
|---|---|---|---|---|
| 5 | Yes | Yes | Yes | Yes |
| No | Yes | Yes | Yes | |
| 0.25 | No | No | Yes | Yes |
| No | No | No | Yes | |
| No | No | No | Yes |
Real numbers are uncountable
The natural numbers and the rational numbers are countably infinite: you can list them one by one. The real numbers cannot be listed this way, because between any two real numbers there are infinitely many others. The set of real numbers is uncountable.
Real numbers in computing
Real numbers are used for measurements: heights, weights, temperatures, distances and times. Programs store them as floating point or fixed point numbers. Because there are infinitely many real numbers but only a finite number of bit patterns, a computer can only represent some of them, and the rest must be rounded (see 4.5.4.4 and 4.5.4.5).
height = 1.78 # a real number, stored as a float
radius = 2.5
area = 3.14159 * radius ** 2
print(area) # 19.6349375
Worked example
Task: name the smallest set from , , , that contains each number: 12, , , .
- 12 is a natural number, so .
- is negative but whole, so .
- , so .
- is irrational, so it is only in .
Exam tip: know the order of the sets , and that the real numbers also include the irrationals. is the set of all possible real-world quantities.
Check yourself
What does the set of real numbers include?
The natural numbers, the integers, the rational numbers and the irrational numbers.
Is a real number? A rational number?
It is a real number, but it isn't rational (it is irrational).
Why can't a computer store every real number?
There are infinitely many real numbers, and many need infinite digits, but a computer has only a finite number of bits, so only some can be represented, and the rest are approximated.