It can be fun to choose big numbers, but should we?
Have you tried something like this?
If you add enough zeros, 2Code will show the number in a different way.
5e+21
is a very big number. So big, it is actually hard to think about!
Nevertheless, you can write it: a 5 followed by 21 zeros. That’s what the e+21 means.
5,000,000,000,000,000,000,000
^ ^ ^ <- ^ millions
5 thousand, million, million, million
or 5 thousand billion billion
or 5 sextillion
There are estimated to be between 1e+20
and 1e+24
individual grains of sand on the Earth. So our number is something like that.
1e+24 = 1,000,000,000,000,000,000,000,000
5e+21 = 5,000,000,000,000,000,000,000
1e+20 = 100,000,000,000,000,000,000
If you go bonkers in 2Code, the biggest number you can put into a repeat block is 1e+400
. Really!
How would you write this number?
10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
Computer programs store numbers in the computer’s memory. There is a fixed amount of memory installed in a computer, so the memory available for numbers is restricted.
The monstrous number 1e+400
is so big it is impossible to think about. Stop!
You might just as well set your 2Code repeat block to repeat forever and feel lucky that we have a stop button. A forever loop really means; keep repeating until we interrupt you. They are actually quite useful.
Just suppose an imaginary life form could count up from zero by saying the next number every second. Let’s say it started at the beginning of the Universe, which is why it is imaginary. Conditions near the time of the Big Bang were a little exteme. They were not good for any kind of life to exist, let alone do any uninterrupted counting.
How many seconds in a minute?
How many minutes in an hour?
60 x 60
seconds in an hour = 3600
How many hours in a day?
24 x 60 x 60
seconds in a day = 86,400
How many days in a year?
365 x 24 x 60 x 60
seconds in a year = 31,536,000
How many years since the Universe began?
13,700,000,000
137e+8
as you could write it (count the zeros)How many seconds since the Universe began?
137e+8 x 315e+5
(137 x 315) e+ (8 + 5)
Could you do that?
Even if it started when the Universe began, our capably counting creature could only have got up to just over 4e+17
.
The difference between 21
and 17
is 4
.
The way these e+ numbers work, 5e+21
is more than 10,000 times bigger than 4e+17
. See the four zeros at work there?
So our creature would need to live (and count) for more than 10 thousand times the current age of the universe to count up to the big number we first saw at the top of the page.
Happy counting!