Category: Arithmetic Level: 101
-3 + 5 - 4 = -2
Every number is a position. Adding a positive number moves right; adding a negative number (subtracting) moves left.
Every integer has a place on the line. Zero is in the middle, positive numbers go right, and negative numbers go left. Start at −3.
start: -3
Adding a positive number moves you to the right. Five hops right from −3 lands on 2.
-3 + 5 = 2
Subtracting moves you to the left. Four hops left from 2 lands on −2.
2 - 4 = -2
The final position is the answer. The order of the hops does not matter: −3 − 4 + 5 lands in the same place.
-3 + 5 - 4 = -2
cd svg-generator python3 -m svgmath render number-line-integers --out /tmp/number-line-integers
Source: svgmath/diagrams/number_line.py