Decimal: 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 Binary: 0 1 10 11 Decimal: 20 25 30 40 50 Binary: Example: A single binary digit like "0" or "1" is called a "bit".
For example is five bits long. The word bit is made up from the words " b inary dig it ". Example: What is 2 in Decimal? For example, 15, , , 99, 6 and so on. This is called the decimal number system or base ten , which means that this number system has ten different digits to construct a number, as many as most people have fingers.
But computers are not built with the decimal number system. This is because computers are built with electronic circuits, each part of which can be either on or off. As there are only two options, they can only represent two different digits , 0 and 1. This is called the binary number system, or base two. All the numbers are constructed from the two digits 0 and 1. A digit in binary that's a 0 or a 1 is also called a bit — short for bi nary digi t. Computers use this number system to add, subtract, multiply, divide and do all their other math and data.
They even save data in the form of bits. A bit by itself can only mean zero or one, so to represent bigger numbers and even represent letters they group them together into chunks. Eight bits make a byte , and computers use as many bytes as they need to store what we need them to. Modern computers have many billions of bytes of storage. In normal math, we don't use binary.
We were taught to use our normal number system. Binary is much easier to do math in than normal numbers because you only are using two number-symbols — 1 and 0 instead of ten number-symbols — 0, 1, 2, 3, 4, 5, 6, 7, 8, and 9. With just two number-symbols, you can count quite high using things that just go "on" or "off", "yes" or "no".
For example: How high can you count with your fingers? Most people would say If you count on your fingers with binary you can count to 31 with one hand!
With two hands, using binary, you can count up to ! The King was surprised by this humble request. On the first square: 1 grain, on the second square: 2 grains for a total of 3 and so on like this:. By the 30th square you can see it is already a lot of rice! A billion grains of rice is about 25 tonnes 1, grains is about 25g I weighed some!
Notice that the Total of any square is 1 less than the Grains on the next square Example: square 3's total is 7, and square 4 has 8 grains. So, the power of binary doubling is nothing to be taken lightly billion tonnes is not light!
By the way, in the legend the Sage reveals himself to be Lord Krishna and tells the King that he doesn't have to pay the debt at once, but can pay him over time, just serve rice to pilgrims every day until the debt is paid off.
0コメント