# The Number Line

## Plain English first
A number line is a straight line where every point represents a number. Numbers increase as you move right and decrease as you move left. It never ends in either direction.
The number line gives numbers a **location in space** — which lets you talk about order, distance, and direction.
## The layout
```text
← ... -5 -4 -3 -2 -1 0 1 2 3 4 5 ... →
```
- Zero sits at the center
- Positive numbers extend right, growing larger
- Negative numbers extend left, growing smaller
## Standard math notation
```text
a < b a is to the LEFT of b (less than)
a > b a is to the RIGHT of b (greater than)
Distance between a and b: |a - b|
Midpoint of a and b: (a + b) / 2
```
## Verbose Python with descriptive names
```python
def find_position_on_number_line(number):
"""Every number has an exact position — right, left, or at zero."""
if number > 0:
return f"{number} is {number} units to the RIGHT of zero"
elif number < 0:
return f"{number} is {abs(number)} units to the LEFT of zero"
else:
return "0 is AT zero — the center of the number line"
def compute_distance_between_two_points(point_a, point_b):
"""
Distance is always positive — how far apart, regardless of direction.
Subtract to find the gap; absolute value removes the sign.
"""
return abs(point_a - point_b)
def find_midpoint_between_two_numbers(number_a, number_b):
"""The midpoint is exactly halfway — add them and divide by 2."""
return (number_a + number_b) / 2
# Demonstrations
print(compute_distance_between_two_points(2, 5)) # 3
print(compute_distance_between_two_points(-3, 4)) # 7
print(find_midpoint_between_two_numbers(-4, 4)) # 0.0
```
## Arithmetic as movement
- `3 + 4` → start at 3, move 4 steps **right** → 7
- `3 - 4` → start at 3, move 4 steps **left** → -1
- `3 + (-4)` → same as subtracting 4 → -1
## Common mistakes
- **Bigger negative ≠ bigger number.** -10 is LEFT of -2, so -10 < -2.
- **Distance is always positive.** Distance from 3 to 7 and from 7 to 3 are both 4.
- **The number line includes everything** — fractions, decimals, π all have exact locations.
## See also
- [Negative Numbers](/articles/45845a19-1e29-4a92-8cdd-7bc20ae05a20)
- [Absolute Value — Distance from Zero](/articles/44353274-7a44-4dea-a1bf-4e3a05bdee2f)
- [Zero — The Number That Changed Everything](/articles/6995c841-40bf-4d34-a787-c459d6084b5d)
- [Math Foundations — Visual Table of Contents](/articles/d404884f-54fc-4289-b3f1-baaad2bec6b2)