Who’s exploring?

DISCOVER · QUIZ

Why does 0.1 + 0.1 + 0.1 not equal 0.3 in Python?

The sum looks like it should be exact. The answer is in how a computer writes the number one tenth.

Difficulty: Medium

In Python, the check 0.1 + 0.1 + 0.1 == 0.3 comes out False. Which explanation is correct?

No timer. No scores to share. SparkKindly does not save your answer; see the privacy guide.

Sources, credits & transparency

Report a mistake on this page

FOLLOW YOUR CURIOSITY

One more little discovery.

DiscoverReadAges 9–12

Asterisms: the star pictures inside the constellations

The Big Dipper is not a constellation. It is an asterism — a famous pattern of stars that lives inside a bigger, fainter constellation, Ursa Major. The sky's best-known shapes are often these unofficial pictures within the official ones.

DiscoverReadAges 9–12

Obsidian: the volcanic glass sharper than steel

When lava cools so fast its atoms have no time to arrange themselves into crystals, it freezes as glass. That black volcanic glass flakes to an edge finer than a steel scalpel — and ancient peoples traded it across whole continents.