TExcelTAD
Home › Basic Math & Pre-Algebra › Decimal Place Value

Decimal Place Value

Decimals extend place value to the right of the decimal point: tenths, hundredths, thousandths and so on. This lesson names the decimal places, shows how decimals relate to fractions with denominators 10, 100 and 1000, compares decimals, and introduces Python's Decimal type for exact base-10 numbers.

Places to the right of the point

In place value each place is worth 10 times the place to its right. Keep going past the ones place and you get places worth 110\frac{1}{10}, 1100\frac{1}{100}, 11000\frac{1}{1000} of a unit:

text
   4     7  .  2     0     5
   │     │     │     │     └─ thousandths  5 × 1/1000
   │     │     │     └─────── hundredths   0 × 1/100
   │     │     └───────────── tenths       2 × 1/10
   │     └─────────────────── ones         7 × 1
   └───────────────────────── tens         4 × 10

So 47.205=40+7+210+0100+5100047.205 = 40 + 7 + \frac{2}{10} + \frac{0}{100} + \frac{5}{1000}. You read it "forty-seven and two hundred five thousandths", or simply "forty-seven point two zero five".

Place Value Example digit in 0.3618
tenths 110=0.1\frac{1}{10} = 0.1 3
hundredths 1100=0.01\frac{1}{100} = 0.01 6
thousandths 11000=0.001\frac{1}{1000} = 0.001 1
ten-thousandths 110000=0.0001\frac{1}{10000} = 0.0001 8

Decimals are fractions with power-of-ten denominators

The number of digits after the point tells you the denominator:

0.7=7100.45=45100=9200.125=1251000=183.06=306100=36100=3350\begin{aligned} 0.7 &= \frac{7}{10} \\ 0.45 &= \frac{45}{100} = \frac{9}{20} \\ 0.125 &= \frac{125}{1000} = \frac{1}{8} \\ 3.06 &= \frac{306}{100} = 3\frac{6}{100} = 3\frac{3}{50} \end{aligned}

Python's Fraction can read a decimal string exactly and simplify it:

python · try it yourself
from fractions import Fraction

for text in ["0.7", "0.45", "0.125", "3.06", "47.205"]:
    f = Fraction(text)
    print(f"{text:>7} = {f}")
    0.7 = 7/10
   0.45 = 9/20
  0.125 = 1/8
   3.06 = 153/50
 47.205 = 9441/200

Trailing and leading zeros

  • Zeros at the end after the point do not change the value: 2.5=2.50=2.5002.5 = 2.50 = 2.500. They can still carry meaning: a price of 2.50 shows cents, and a measurement of 2.500 m claims millimetre precision.
  • Zeros between the point and a digit do matter: 0.05 (five hundredths) is ten times smaller than 0.5 (five tenths).
  • Write a leading zero before the point (0.5, not .5). It is easier to read and harder to misread.

Comparing decimals

Line up the decimal points and compare place by place from the left. Padding with zeros helps:

text
0.6   → 0.600
0.58  → 0.580       0.600 > 0.580 > 0.098
0.098 → 0.098

A common mistake is to think 0.58>0.60.58 > 0.6 "because 58>658 > 6". Compare tenths first: 6 tenths beats 5 tenths.

Decimal in Python

A float stores numbers in binary, and most decimal fractions (like 0.1) have no exact binary form. Python's decimal module stores base-10 digits exactly, the way you write them:

python · try it yourself
from decimal import Decimal

price = Decimal("2.50")
print(price, price == Decimal("2.5"))     # same value, keeps its digits
print(Decimal("0.6") > Decimal("0.58"))

print(Decimal("47.205").as_tuple())

print(Decimal(0.1))       # the float 0.1, shown exactly: not quite 0.1
print(Decimal("0.1"))     # built from a string: exactly 0.1
2.50 True
True
DecimalTuple(sign=0, digits=(4, 7, 2, 0, 5), exponent=-3)
0.1000000000000000055511151231257827021181583404541015625
0.1

as_tuple() shows the idea behind decimals directly: the digits 47205 and an exponent of −3, meaning "move the point 3 places left".

Tip: Always build a Decimal from a string (Decimal("0.1")) or an integer, never from a float literal. Decimal(0.1) faithfully copies the float's tiny binary error.

In software

  • Money. Prices, invoices and bank balances are decimal quantities with a fixed number of places. Finance code uses Decimal (Python), BigDecimal (Java), decimal (C#) or integer cents, never plain floats. The next lessons show why.
  • Databases have a DECIMAL(10, 2) / NUMERIC column type for exactly this purpose.
  • Version numbers are not decimals. Version 1.10 is newer than 1.9, but as decimals 1.10<1.91.10 < 1.9. Compare versions part by part as integers.

Exercises

Exercise 1: Digit values

In 6.4729, what is the value of the 7 and of the 9?

Answer

The 7 is 7 hundredths (0.07); the 9 is 9 ten-thousandths (0.0009).

Solution

Counting places after the point: 4 is tenths, 7 is hundredths, 2 is thousandths, 9 is ten-thousandths. So 7×1100=0.077 \times \frac{1}{100} = 0.07 and 9×110000=0.00099 \times \frac{1}{10000} = 0.0009.

Exercise 2: Decimal to fraction

Write 0.36 and 2.875 as fractions in lowest terms.

Answer

925\frac{9}{25} and 238\frac{23}{8} (=278= 2\frac{7}{8}).

Solution
0.36=36100GCF 4→9252.875=28751000GCF 125→238=278\begin{aligned} 0.36 &= \frac{36}{100} && \text{GCF } 4 && \to \frac{9}{25} \\ 2.875 &= \frac{2875}{1000} && \text{GCF } 125 && \to \frac{23}{8} = 2\frac{7}{8} \end{aligned}

Exercise 3: Order them

Order from smallest to largest: 0.405, 0.45, 0.4, 0.0455.

Answer

0.0455<0.4<0.405<0.450.0455 < 0.4 < 0.405 < 0.45

Solution

Pad to four places: 0.4050, 0.4500, 0.4000, 0.0455. Now compare as whole numbers of ten-thousandths: 455<4000<4050<4500455 < 4000 < 4050 < 4500.

python · try it yourself
from decimal import Decimal
values = ["0.405", "0.45", "0.4", "0.0455"]
print(sorted(values, key=Decimal))
['0.0455', '0.4', '0.405', '0.45']

Exercise 4: Versions are not decimals

Write a function that sorts version strings like "1.9", "1.10", "1.2" correctly, and show how sorting them as Decimal gets it wrong.

Answer

Correct order: 1.2, 1.9, 1.10. As decimals: 1.10, 1.2, 1.9.

Solution

Split on the dot and compare the parts as integers (tuples compare element by element).

python · try it yourself
from decimal import Decimal

versions = ["1.9", "1.10", "1.2"]
print("as versions:", sorted(versions, key=lambda v: tuple(int(p) for p in v.split("."))))
print("as decimals:", sorted(versions, key=Decimal))
as versions: ['1.2', '1.9', '1.10']
as decimals: ['1.10', '1.2', '1.9']

Test yourself

In 3.582, which digit is in the hundredths place?

  1. 3
  2. 5
  3. 8
  4. 2

Which is the largest?

  1. 0.7
  2. 0.69
  3. 0.698
  4. 0.0799

Why write Decimal("0.1") instead of Decimal(0.1)?

  1. Strings are faster
  2. The float 0.1 is already slightly wrong, and Decimal copies that error
  3. Decimal cannot take numbers
  4. There is no difference