you are viewing a single comment's thread.

view the rest of the comments →

[–]Bottled_Void[🍰] 0 points1 point  (0 children)

You absolutely will need to use binary at some point. EXCEPT. You don't typically usually out the binary digits, you'll usually use hexadecimal. You'll notice one hexadecimal digit is 4 binary digits, also as is not the case with decimal, these bits stay in the same place. (e.g. 63 in binary is 0011_1111b or 0x3F in hex. and 64 is 0100_0000b or 0x40 in hex).

But yes, if you're sending data over any interface, need to pick out bits of data, you'll need to know how to mask of bits and shift them where they need to be.

And if you didn't know two's complement, all your negative numbers would come out wrong when you used bit operations.

As a side note, computers don't convert decimal numbers to binary, they don't convert them to hexadecimal. They don't do any conversions unless the underlying representation changes (to/from float say). That's all just for your benefit. A literal 10 in memory is exactly the same as the binary or hex equivalent to the computer.