How tf does binary code work.

610 views

it’s just a bunch of 0’s and 1’s.. like I can just put a bunch of them and somehow make a sentence??? like what does this mean -> 010100101001010010 (i legit just spammed 0’s and 1’s)

In: 0

26 Answers

Anonymous 0 Comments

Binary is a different way of counting. In base 10/decimal, the system we use to count normally, we have different “columns” that numbers are in. The 1’s column, the 10’s column, the 100s, etc. if you take the number in that column and you know how many 100s, 10s, or 1s there are. It’s called base 10 because each column is one power of 10 higher then the previous.

Binary is base 2. This means each column is a power of 2 rather then a power of 10. We use it because electricity in a transiter in your computer can either be on, or off, 1 or 0. To count with it works the same. We have a 1s column, a 2s column, a 4s column, etc. so 1010 in binary would convert to 6 in decimal. Try it yourself, start with small numbers, and remember its just powers of 2. we call the columns in binary a “bit”, 8 bits make up a byte. From there you see how memory works! a kilobyte is roughly 8000 bits, 1s or 0s. The 18 bits you entered would convert to binary as the decimal number 84562.

To represent letters on a screen from binary we first assigned every letter and symbol a number from 0 to 255. Then if the binary value is equal to that binary value, we can represent that character. This is called ASCII, and you can find a table online if your curious. Each ASCII character is the same length, a single byte (that’s 8 bits!) so your random string of binary doesn’t mean anything in standard ASCII as its 18 numbers. if we cut the last 2 off, we would have “Rö”.

You are viewing 1 out of 26 answers, click here to view all answers.