Nepedia
Back to Discover
Independent Reader
🔢

Floating-point arithmetic

math Maturity 7-9 Next article →

Computers need to handle all kinds of numbers.

Float example
Float example

They must count tiny atoms and huge galaxies. To do this, they use floating-point arithmetic. This is a way to show numbers with a dot.

A number line representing single-precision floating point's numbers and numbers that it cannot display
A number line representing single-precision floating point's numbers and numbers that it cannot display

We call this dot a radix point. It can "float" to different spots. This makes it like scientific notation.

A floating-point number has two main parts. The first part is the significand. This is a string of digits. The second part is the exponent. The exponent tells the dot where to move. If the exponent is large, the number is big. If the exponent is small, the number is tiny.

Most computers use base two for this math. Some use base ten. Sometimes, the math is not perfect. A computer might have to round a number. This happens when a number has too many digits.

FloatingPointPrecisionAugmented
FloatingPointPrecisionAugmented

Special parts in a computer help with this. We call these parts floating-point units, or FPUs. They make the math happen very fast.

164 words

Where will your curiosity go next?

Keep exploring at your chosen reading level.

🖼️ Images & Media (8)
File:Z3 Deutsches Museum.JPG
Z3 Deutsches Museum.JPG
File:A number line representing single-precision floating point's numbers and numbers that it cannot display.png
A number line representing...
File:FloatingPointPrecisionAugmented.png
FloatingPointPrecisionAugmented.png
File:Quevedo 1917.jpg
Quevedo 1917.jpg
File:Konrad Zuse (1992).jpg
Konrad Zuse (1992).jpg
File:William Kahan 2008.jpg
William Kahan 2008.jpg
File:Float example.svg
Float example.svg
File:Resistors in Parallel.svg
Resistors in Parallel.svg
More to explore

🔬 Go deeper

More advanced topics to explore

🪜 Step back

Simpler topics to build understanding

What is Nepedia?

A free, ad-free encyclopedia for children. Every article is written at five reading levels, so the same page works for a five-year-old and a fifteen-year-old — use the level switcher above to see this one change. No account needed to read.