Figure it out yourself Binary. 0000 0000 = 0 0000 0001 = 1 0000 0010 = 2 0000 0011 = 3 0000 0100 = 4 0000 0101 = 5 0000 0111 = 7 0000 1000 = 8 0000 1010 = 10 0001 0000 = 16 0001 1011 = 27 0010 0000 = 32 0100 0000 = 64 1111 1111 = 255 Now you figure out what this is: 1010 0101 = ??? (Also if I got anything wrong, tell me.) EDIT: Yes I did. Fixed before anyone caught me on that
While we're on the topic, I might as well explaining writing words in binary. Each character is one byte of information. That is, each character takes 8 0s or 1s (also called bits) to convey its value. For letters, we can divide the byte into two parts. The first three bits are used to indicate whether the letter is uppercase or lowercase. Use 010 for uppercase and 011 for lowercase. After this, we need to know how to convert a number from decimal into binary, as explained above by Michal. Starting from the right moving left, every subsequent bit is worth 2 to the amount of places you've moved over, meaning it increases exponentially. The rightmost is worth 1, then 2, 4, 8, and 16. To get the last five digits, you find the number of the letter in the alphabet; we'll take L for example. L is the 12th letter in the alphabet. We start from the left now: Does 16 go into 12? No, so the first digit is a 0. Does 8 go into 12? Yes, so the second digit is a 1. Subtract 8 from 12 and you're left with 4. Does 4 go into 4? Yes, so the third digit is a 1. Subtract 4 from 4 and you're left with 0. Does 2 go into 0? No, so the fourth digit is a 0. Does 1 go into 0? No, so the fifth digit is a 0. Now we've got our letter L in binary: 01001100 Some other useful values you should know if you're going to be writing full sentences in binary: Space - 00100000 Exclamation Point - 00100001 Question Mark - 00111111 Period - 00101110 Comma - 00101100 01000111 01101111 01101111 01100100 00100000 01101100 01110101 01100011 01101011 00100001