Nepedia
Back to Discover
Independent Reader
🔢

Truth value

math Maturity 11-13 Next article →

Think about a light switch. It is either on or off. In math, we use something similar called a truth value. A truth value tells us if a statement is true or false.

Most math uses classical logic. This type of logic only has two values. These are true and false. We call this the Boolean domain.

Computers use these values to work. Many computer languages use a type called Boolean. In these languages, some things are called "falsy." This means the computer treats them as false. For example, the number zero is often falsy. An empty list is also often falsy.

Other things are called "truthy." This means the computer treats them as true. A word with letters is often truthy. Other numbers can be truthy too. In the language C, any number that is not zero is true.

Some math uses more than two values. This is called multi-valued logic. It can show different degrees of truth. It is not just on or off. This helps when things are not simple.

174 words

Where will your curiosity go next?

Keep exploring at your chosen reading level.

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.