Free calculator tools. Fast, simple, no sign up.
A number system is a way of writing numbers with a base. We use base 10 every day, but computers use base 2, and programmers often use base 16. The...
A number system is a way of writing numbers with a base. We use base 10 every day, but computers use base 2, and programmers often use base 16. The value of a digit depends on its position in all of them.
In base 10, each place is worth ten times the one to its right: 5,432 is 5 thousands plus 4 hundreds plus 3 tens plus 2 ones. In binary, each place is worth twice the one to its right, so 1010 is 1 times 8 plus 0 times 4 plus 1 times 2 plus 0, which is 10 in decimal. In hexadecimal, each place is worth sixteen times the one to its right, and the letters A to F stand for 10 to 15, so FF is 15 times 16 plus 15, which is 255.
Converting between bases is a matter of place values. To turn decimal into binary, keep dividing by 2 and read the remainders backwards: 25 divided by 2 leaves remainders that spell out 11001.
Convert binary 1101 to decimal. The places are 8, 4, 2, 1, so the value is 8 + 4 + 0 + 1 = 13.
The most common error is reading binary from the wrong end. The rightmost digit is the ones place, just as in decimal.
Convert decimal 13 to binary. (Answer: 1101.)
Keep a short note of the formula or rule from this guide, with one worked example beside it. A single page of such notes, built topic by topic, becomes a revision sheet that is far more useful than a textbook chapter. Revisit the note after a week and try the practice question again without looking. If you can do it cold, the topic is yours.
Why does this method work? Because each step keeps both sides equal, or keeps the value unchanged. Methods that preserve equality or value are safe to use again and again, and that is why they appear in so many topics.