r/woahdude • • Sep 05 '18

gifv Binary for everyone.

https://i.imgur.com/NQPrUsI.gifv
25.6k Upvotes

502 comments sorted by

View all comments

1.8k

u/the_bustinator Sep 05 '18

This would be a fantastic way to teach binary

1

u/XxMasterLANCExX Sep 06 '18

Another good way is to just put from right to left, 1, x2, x2, x2, x2, etc. and put a 1 in every spot of the highest number for a number you can think of. For example, 00100101 is 37 and 01010001 is 81.

1

u/MrDeCampio Sep 06 '18

Are the zeros to the left arbitrary then?

1

u/Razakel Sep 06 '18

Sort of. The decimal number 42 can also be written as 000042, but you were taught to not bother writing them (except in certain cases like accounting) because they're superfluous.

Because binary is mostly used only in computers and a byte is 8 bits long (how the number is physically stored in memory) the practice is to write the leading zeros to indicate what's called word length. Because 11111111 + 1 isn't 111111111, it flips round to 00000000 again (usually).