Index Ai Academy
Foundation · Foundation mathNumbers

Numbers and place value

About 36 min

Why this matters

Every number a computer holds is digits in places: a price, a pixel, the size of an AI model. You already know how to add and subtract. This lesson is about what a number is: why the 4 in 4,072 is worth four thousand, and why it matters where a digit sits. You'll also run your first lines of Python, which is a calculator that never gets tired.

  • Say what each digit of a number is worth from its place, and rebuild a number from its parts
  • Add with a carry, and say what the carry stands for
  • Run Python cells that add, subtract and print
  • Count the numbers inside a small picture, and read a model size like 7B
Quick check
Have a guess before you start. In 4,072, what is the 4 worth?

The math: what a digit is worth

Purpose. We write every number, however big, with just ten digits: 0 to 9. The trick that makes it work is the place. The same digit is worth more the farther left it sits.

Read a number from the right. The first place counts ones. The next counts tens, then hundreds, then thousands. Each place is worth ten of the place to its right.

So 4,072 means:

thousandshundredstensones
4072

That's 4 thousands, 0 hundreds, 7 tens and 2 ones. The 0 matters: it holds the hundreds place open. Without it, 472 would be a different number.

The picture. Watch 4,072 come apart into what each digit is worth, then go back together. The picture gives each place a row of blocks, one block for each unit of its digit: in the thousands row each block is a thousand, in the tens row each is a ten. So 4,072 is 4 blocks, then an empty hundreds row where the 0 sits, then 7 and 2. The tens row has more blocks than the thousands row and is still worth far less: the place decides, not the count. Each step works out one row's worth; then the rows are added, one by one, into the total at the bottom.