All gamesiPhone calculatorBlog

Home › iPhone calculator › Types of numbers

Types of Numbers: A Guide for Your iPhone Calculator

A Phoney’s Calculator Class tutorial

Types of numbers15 minutes

Numbers are like animals. At first they all look like “numbers,” just as every creature looks like “an animal.” But look closer and you find families. There are the simple counting numbers a toddler learns, the negative numbers that show up in winter temperatures and bank accounts, the fractions that slice up a pizza, the never-ending decimals like π, and even numbers so strange that your calculator refuses to show them at all. Knowing which family a number belongs to helps you predict how your calculator will behave, and explains why some answers are exact while others are only close.

This tutorial is a friendly tour of the number families. You will learn their names, how they fit inside one another like nesting dolls, how to test numbers with your calculator, and why some keys, such as the square root of a negative number, produce an error. You will also learn about even and odd numbers, primes and factors, and the sign rules for negative numbers. Open your Calculator, and let us meet the family.

Watch the video

The nesting dolls of numbers

Here is the big picture. Number families sit inside each other, the way a small Russian doll sits inside a bigger one:

Let us meet each in turn.

Natural numbers: 1, 2, 3, …

The natural numbers are the counting numbers: 1, 2, 3, 4, and so on forever. They are the numbers you use to count apples, people and cars. They start at 1 and never end.

There is a small disagreement in mathematics about whether 0 should be included. Many schools keep it out of the natural numbers and call the set with 0 the whole numbers. We will follow that convention here.

On the calculator, natural numbers are the ones you build by tapping digit keys with no decimal point and no minus sign. Add two of them, and you always get another natural number. Multiply two of them, and the same. But subtract 5 − 8, and you step outside the family. That is why a bigger family was invented.

Whole numbers: 0, 1, 2, 3, …

The whole numbers are the natural numbers plus zero: 0, 1, 2, 3, and so on. Zero is a very special number. It means “nothing,” and it is the starting point for all measurements. Adding zero changes nothing, and multiplying by zero gives zero.

There is one thing you must never do with zero: divide by it. Type 5 ÷ 0 = on your calculator. The screen shows Error. Dividing by zero asks “how many nothings make 5?”, and that question has no answer. Zero divided by 5, on the other hand, is perfectly fine: 0 ÷ 5 = gives 0.

Integers: …, −2, −1, 0, 1, 2, …

The integers include all the whole numbers and also their negative partners: −1, −2, −3, and so on. They are the numbers you need for temperatures below zero, bank balances below zero, floors below ground, and distances in opposite directions.

To type a negative number on the iPhone, type the number and then tap the ± key. Type 5, tap ±, and the screen shows −5. Tap ± again and it returns to 5.

Be careful to separate two different ideas: the minus sign (a negative number, like −5) and the subtraction operation (like 8 − 5). They look the same on paper, but on the calculator the ± key makes a number negative, while the − key subtracts.

The sign rules

Working with negative numbers follows tidy rules. You can confirm each with your calculator.

A helpful way to remember the multiplication rule is “same signs give positive, different signs give negative.” Two negatives make a positive, just like the double negative in “I do not have no money,” which means you do have some.

Rational numbers: the fractions

A rational number is any number that can be written as a fraction of two integers, with a bottom number that is not zero. The word comes from “ratio.” Examples are 1/2, −3/4, 7/1 and 22/7.

Here is a surprise: all the integers are rational numbers too, because any integer can be written over 1. The number 5 is 5/1, and −3 is −3/1. So the integers fit inside the rational numbers like a smaller doll.

Rational numbers also include every decimal that ends and every decimal that repeats forever in a pattern:

When you turn a fraction into a decimal on your calculator, you are exploring the rational numbers. Type 1 ÷ 7 =. The screen shows about 0.1428571429. If you could see more digits, you would find the block 142857 repeating forever. A calculator only shows about ten digits, so you cannot actually see that the pattern repeats. But you know that any fraction of whole numbers must eventually repeat or end.

Irrational numbers: the never-ending, never-repeating ones

Some numbers cannot be written as a fraction of two integers, no matter how clever you are. Their decimal digits go on forever without any repeating pattern. These are the irrational numbers.

The most famous are:

Here is the key warning for calculator users: your calculator shows rounded decimals for both rational and irrational numbers, so you cannot tell them apart just by looking at the screen. The number 0.3333333333 looks like an irrational number, but it is rational: it is 1/3 written as a decimal. The number 1.414213562 is irrational. To decide, you need to know how the number was made.

A useful rule is that the square root of a whole number is irrational unless that number is a perfect square. √16 = 4 is rational. √2, √3, √5, √6, √7, and √8 are all irrational. You can test it: type 16, tap ²√x, and you get exactly 4. Type 15 and tap ²√x, and you get a messy decimal.

Mixing the families

A few rules help:

Real numbers: the whole number line

Put the rational and irrational numbers together, and you get the real numbers. They fill the whole number line from far left to far right, with no gaps. Every point on a ruler corresponds to a real number. The distance across a square with sides of 1 is √2. The distance around a circle with a diameter of 1 is π. These real numbers sit between the simpler ones.

Almost every number your calculator shows is a real number, or at least a decimal rounded from one.

When the calculator says Error: imaginary numbers

What about numbers that are not real? Try asking the calculator for the square root of −4. Type 4, tap ±, tap ²√x. The screen shows Error.

There is a good reason. No real number multiplied by itself gives a negative result, because a positive times a positive is positive, and a negative times a negative is also positive. To solve this, mathematicians invented a new number called i, defined by i × i = −1. The square root of −4 is then 2i. Numbers built with i are called imaginary or complex numbers, and they are essential in electronics, physics and engineering. The iPhone calculator stays in the real numbers, so it reports an error rather than an answer. If you see an error for a square root, check whether the number under the root is negative.

Sorting numbers into families

Here is a sorting practice. For each number, ask which families it belongs to.

Even and odd numbers

Another way to classify whole numbers is by whether they divide evenly by 2. Even numbers end in 0, 2, 4, 6 or 8. Odd numbers end in 1, 3, 5, 7 or 9.

Test with the calculator: divide by 2 and look for a decimal part. 84 ÷ 2 = gives 42, a whole number, so 84 is even. 85 ÷ 2 = gives 42.5, so 85 is odd.

The same test works for any divisor. To see if 91 is divisible by 7, type 91 ÷ 7 =. The screen shows 13, exactly. So 7 is a factor of 91.

Factors, multiples and primes

A factor of a number divides it exactly. The factors of 12 are 1, 2, 3, 4, 6 and 12. A multiple of a number is what you get when you multiply it by whole numbers. The multiples of 12 are 12, 24, 36, 48, and so on.

A prime number has exactly two factors: 1 and itself. The first primes are:

2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47…

Note that 2 is the only even prime, and 1 is not a prime. A number with more than two factors is called composite, such as 12 or 91.

Testing whether a number is prime

The calculator can help you test. The trick is that you only need to try dividing by primes up to the square root of the number. If none of them divides exactly, the number is prime.

Is 91 prime? The square root of 91 is about 9.5, so test the primes 2, 3, 5 and 7. Type 91 ÷ 7 =. The answer is 13, a whole number, so 91 is divisible by 7. It is not prime: 91 = 7 × 13.

Is 97 prime? The square root is about 9.8, so test 2, 3, 5 and 7. Type 97 ÷ 2 = (48.5), 97 ÷ 3 = (32.33), 97 ÷ 5 = (19.4), and 97 ÷ 7 = (13.857). None gives a whole number, so 97 is prime.

Prime factorization

Every whole number above 1 can be written as a product of primes, in exactly one way. To find the factors of 360, keep dividing by the smallest prime that works:

  1. 360 ÷ 2 = 180.
  2. 180 ÷ 2 = 90.
  3. 90 ÷ 2 = 45.
  4. 45 ÷ 3 = 15.
  5. 15 ÷ 3 = 5.
  6. 5 is prime, so stop.

So 360 = 2 × 2 × 2 × 3 × 3 × 5, or 2³ × 3² × 5.

The biggest shared factor and smallest shared multiple

The greatest common factor of two numbers is the biggest number that divides both. For 12 and 18, it is 6. The least common multiple is the smallest number that both divide into. For 12 and 18, it is 36. A neat shortcut links them: LCM = (first × second) ÷ GCF. Type 12 × 18 = (216), then ÷ 6 =. The answer is 36.

These ideas helped you with fractions in Part 9: the greatest common factor is what you divide by to simplify, and the least common multiple is the best common denominator.

Perfect squares and perfect cubes

A perfect square is the square of a whole number: 1, 4, 9, 16, 25, 36, and so on. The calculator spots them easily. Take the square root, and if you get a whole number, the original was a perfect square. 144 ²√x gives 12, so 144 is a perfect square. 150 ²√x gives 12.247…, so 150 is not.

Similarly, a perfect cube has a whole number for its cube root. 343 ³√x gives 7, so 343 is a perfect cube.

Remainders

When one whole number does not divide evenly into another, there is a remainder. The calculator shows a decimal, but you can find the remainder yourself.

For 17 ÷ 5, type 17 ÷ 5 =. The screen shows 3.4. The whole part is 3. Now multiply back: 3 × 5 = gives 15. Then 17 − 15 = gives 2. So 17 ÷ 5 is 3 remainder 2.

Common mistakes and how to avoid them

Mistake 1: thinking a decimal that looks messy is irrational. The decimal 0.3333333333 is rational. Irrational means the number cannot be written as a fraction at all.

Mistake 2: mixing up the minus key and the plus-minus key. Use ± to make a number negative and − to subtract.

Mistake 3: forgetting that zero is special. You can divide zero by a number, but never divide a number by zero.

Mistake 4: forgetting that 1 is not prime. The first prime is 2.

Mistake 5: expecting the calculator to give imaginary answers. The square root of a negative shows an error.

Mistake 6: assuming that two negatives always make a positive. That is true for multiplication and division, not for addition. −3 + −4 is −7.

Mistake 7: trusting the display to show a pattern. The screen holds only about ten digits, so you cannot see whether a decimal repeats.

Practice questions

Try these before you look at the answers.

Question 1. Name the families that contain −7.

Question 2. Is 91 prime?

Question 3. What kind of number is √144?

Question 4. Is 0.125 rational or irrational?

Question 5. What is −3 × −4?

Question 6. What is 5 − (−3)?

Question 7. What is the least common multiple of 12 and 18?

Question 8. Is √2 rational or irrational?

Answers

Quick reference

Frequently asked questions

Is zero positive or negative? Neither. It is the boundary between them.

Is 5.0 an integer? Yes. It is the same number as 5, just written with a decimal.

Can an irrational number be written exactly? Yes, with a symbol or a rule, such as π or √2. You just cannot write all its digits.

Why do we need so many kinds of numbers? Each new family was invented to solve problems the older ones could not: negatives for debts, fractions for sharing, irrationals for diagonals and circles, imaginary numbers for waves and electricity.

What comes next

In the final tutorial of this series, Part 15, you will learn the rules that keep every calculation honest: the order of operations, known as PEMDAS. You will see why 3 + 4 × 2 is 11 and not 14, how brackets change everything, and how your iPhone follows the rules. It is the glue that holds all your calculator skills together.

Until then, practise sorting numbers into families. Pick ten numbers from a newspaper and name every family each belongs to.

← All iPhone calculator lessons