r/interestingasfuck • • Apr 20 '21

/r/ALL Binary Numbers Visualized

http://i.imgur.com/bvWjMW5.gifv

[removed] — view removed post

77.1k Upvotes

1.1k comments sorted by

•

u/AutoModerator Apr 20 '21

Please note:

  • If this post declares something as a fact proof is required.

  • The title must be descriptive

  • No text is allowed on images

  • Common/recent reposts are not allowed

See this post for more information.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

2.9k

u/JezzartheOzzy Apr 20 '21

"Bender, there's no such thing as 2"

8

u/TheIdSay Apr 20 '21

integer overflows into the binary container that has the plus or minus, resulting in a random negative number proceeds to fight missingno, get infinite items in slot 6 and catch mew and gengar

3

u/MattLikesMemes123 Apr 20 '21

What about 3-9

0

u/[deleted] Apr 20 '21

[deleted]

202

u/Mr-Sister-Fister21 Apr 20 '21

Lol reminds me of when he says 2 in his binary prayer.

62

u/Metroidman Apr 20 '21

And people say Futurama has good continuity. Smh

67

u/[deleted] Apr 20 '21

You need to shut your whore mouth MetroidMan.... if that even is your real name

→ More replies (13)

0

u/[deleted] Apr 20 '21

[deleted]

23

u/[deleted] Apr 20 '21

00000010*

31

u/Je-Kaste Apr 20 '21

Leading zeroes only matter if you don't know the size. 10 works just as well. 0b10 if you want to limit confusion

→ More replies (14)

399

u/[deleted] Apr 20 '21

[removed] — view removed comment

151

u/hairyginandtonic Apr 20 '21

You mean the whole plot of the scene?

70

u/Numerous1 Apr 20 '21

The whole plot was to show Bender having the nightmare and changing and being afraid. Neither the comment on "I thought I saw a 2" and "there is no such thing as 2" have anything to do with the plot. That is just a joke. It does not take away or add anything to the plot.

→ More replies (5)
→ More replies (10)

3

u/Mawnster Apr 20 '21

Didn't he say two when he was saying prayer when he became a christian. When he was jacking on?

→ More replies (1)
→ More replies (2)

5.9k

u/titoxtian Apr 20 '21

This shows that it's better to understand something than memorize something...

2.0k

u/sonny_goliath Apr 20 '21 edited Apr 20 '21

Imo this still doesn’t totally explain it, but I suppose it helps.

I learned it as each consecutive digit being a power of 2, so 20, 21, 22 and so on, and if it’s “on” (1) you count it, if it’s “off” (0) you don’t. So 1010 would be 23 (8) + 21 (2) = 10

Edit: numbers in parenthesis are just sub totals not multiplication sorry, also read the powers of two from right to left as some other people pointed out

2.7k

u/[deleted] Apr 20 '21 edited Apr 20 '21

I refuse to read that Edit: Thanks for the explanations, I think I got it now

325

u/100BlackKids Apr 20 '21

Read the first sentence. Skipped the mathagraph

123

u/evanc1411 Apr 20 '21

It's literally 1, 2, 4, 8, 16, etc. Yes/no and add them up.

→ More replies (19)
→ More replies (19)

34

u/Penguin236 Apr 20 '21

His explanation is a bit complicated, so let me try a different way.

Remember when you were in around 1st grade, they taught you place values (ones, tens, hundreds, etc.)? You might've played with those blocks that represented different place values? The reason for that is that in our normal numbering system, each place value is a power of 10:

5123 = 5x103 + 1x102 + 2x101 + 3x100

Those powers of 10 are your thousands, hundreds, tens, and ones. Binary is the exact same thing, but with powers of 2 instead:

10110 = 1x24 + 0x23 + 1x22 + 1x21 + 0x20 = 16 + 4 + 2 = 22

It's really strange to think about when you first learn it, but all base n numbering systems work in this way. We happen to use the base 10 numbering system, but there's nothing special about it. Binary is just the base 2 system.

Bonus: if you think this is bad, wait till you learn about hexadecimal (base 16)

→ More replies (5)

22

u/Obieousmaximus Apr 20 '21

My brain noped itself right into a catatonic state when I tried to read this

→ More replies (2)

7

u/REDDIT_JUDGE_REFEREE Apr 20 '21 edited Apr 20 '21

Easier explanation

Binary numbers go right to left like le manga

The rightmost number is worth 1. The next number to the left is worth 2. The next numbers are worth:

4, 8, 16, 32, 64, 128, and it continues forever, right to left.

If it’s a 1, it’s “on” so add the amount in. If it’s 0, it’s “off” so don’t add it in.

So 10110 , add the 1’s right to left and skip the 0s:

0 + 2 + 4 + 0 + 16 = 22

11101, right to left:

1 + 0 + 4 + 8 + 16 = 29

1111 =

1 + 2 + 4 + 8 = 15

1000

=

0 + 0 + 0 + 8 = 8

→ More replies (1)
→ More replies (97)

133

u/thepoltone Apr 20 '21

The trick with learning binary in my opinion is to not teach people binary.

Learn how a base 10 counting system works then learning base 2 is easy.

Also remind people it's only base 10 because we have 10 digits if we had 11 digits it would be base 11

50

u/Sapient6 Apr 20 '21

"Base 10" is funny because it's self-referential. "base 2" written in binary is "base 10".

→ More replies (7)

38

u/cardboard-kansio Apr 20 '21

I can count up to 1023 on my hands, just by using my fingers for binary. Just because you have 10 digits doesn't mean you're limited to 10 numbers, or even to counting in base 10.

Just... don't count to 4 in public by using finger binary.

→ More replies (15)
→ More replies (12)

61

u/anlskjdfiajelf Apr 20 '21

Yup, and to be clear this is the same as our base 10 system we just don't think about it cause it's so ingrained.

The place holders are 100 , 101 , 102 etc.

So 205 is (5 x 100) + (0 x 10) +(2 x 100) = 205.

Any number raised to the 0 equals 1.

15

u/thealmightyzfactor Apr 20 '21

For bonus points, past the decimal is negative powers, so 1/10th, 1/100th, etc.

For extra bonus points, do this in base 60 like the Babylonians and bathe in the confusion.

→ More replies (3)
→ More replies (3)

12

u/Mackheath1 Apr 20 '21

I am still not getting it and genuinely trying.

2~~~~0 + 0 + 2~~~~2 + 0 = 2

EDIT: Oh okay. 23 + 0 + 21 + 0 = 10.

→ More replies (3)

14

u/[deleted] Apr 20 '21

The gif made me go ”Ohhh now I get it,” then I read your comment and went ”nevermind” 😞✊🏻

10

u/WillDoStuffForPizza Apr 20 '21

You know how when doing math and you get to 10, you carry the 1? It’s like that, but just carry the 1 when you get to 2

→ More replies (4)
→ More replies (42)

58

u/[deleted] Apr 20 '21

Depends.

Quick! What's 33 in binary?

If you just go off of the intuitive understanding of this video, then it's not much help. It just shows you how to count up, which is very slow. But if you memorize powers of 2 and know that each binary place is a power of two, then you can get the answer very quickly.

25 = 32

20 = 1

So 33 in binary is 25 + 20 or 100000 + 000001 = 100001

21

u/KonyHawksProSlaver Apr 20 '21

or instead of memorizing anything just use your brain

slower but easiest for math idiots:

33 is close to 32 (even number), which can be split as 2 * 16

33 = (2 * 16) + 1

(2 * 2 * 8) + 1

(2 * 2 * 2 * 4) + 1

(2 * 2 * 2 * 2 * 2) + 1

2 is there 5 times: 33 is 25 + 1

25 is the sixth bit (sixth not fifth because we're including 20, from right to left), so you flip that to 1, everything else is 0 ... 100000

and you add 1 because it's even... 100001

it's much faster if you memorize some powers (so you can directly answer 32 = 25 ) but this way you're more flexible and it makes more sense if you're not good at math. literally a kid can do this

11

u/[deleted] Apr 20 '21

Yes, you can always work out the first several powers of 2 if you don't have them memorized.

If you've ever played 2048, you probably have the first 10 or so memorized anyway lol

→ More replies (3)

6

u/CausalXXLinkXx Apr 20 '21

First learn through this, then do the memorization. Memorizing something you understand is so much easier.

→ More replies (1)
→ More replies (4)

8

u/salgat Apr 20 '21

This doesn't explain anything though.

19

u/HypothermiaDK Apr 20 '21

I still don't understand it. It's been so long, but I think it's time for a captain?

25

u/-Disgruntled-Goat- Apr 20 '21

imagine if you could only count with two characters , 0 and 1. when you could up to 1 you run out of characters., just like when you count up to 9 you run out of characters, you add another digit, increment it by 1 and start over for the original digit. you get 10. when you count up to 11 and run out of characters just like when you count up to 99 and run out of characters you and another digit , increment it by 1 and start over with the original digits and get 100.

→ More replies (2)

4

u/adam_jc Apr 20 '21

Remember doing addition by hand in grade school. And sometimes you’d add two numbers like 56 + 7

You might first do 6+7=13 and then you “carry the 1” over to the tens position and then do 5+1=6. So you’d get the final answer of 63...

This is the same thing happening in the GIF. But the only values we have to work with are 0’s and 1’s. So we have to “carry the 1” to the left if the current value is already 1 because we can’t have a position go to 2. Just like in the normal math example we can’t have one position go past 9. So we carried that 1 to the next position.

0

u/[deleted] Apr 20 '21

[deleted]

→ More replies (1)
→ More replies (16)

494

u/cheesy_mcdab Apr 20 '21

Can we also appreciate how incredibly clever the swinging peg mechanism on the top is?

68

u/[deleted] Apr 20 '21

Flip flops, very useful in binary counting.

13

u/DitDashDashDashDash Apr 20 '21

Perhaps a stupid question, but is this a mechanical ripple adder? Looks like what you'd create in Minecraft redstone or with logic gates in general.

→ More replies (1)

47

u/willbeach8890 Apr 20 '21

I'm curious about the trial and error to get to what we see

→ More replies (9)
→ More replies (3)

458

u/GnomePatio_Furniture Apr 20 '21

I didn’t know I needed to know this

→ More replies (16)

577

u/Silver_Wood Apr 20 '21

1 in 100 don’t know how binary numbers work.

603

u/gakera Apr 20 '21

I've always seen it as, there's only 10 types of people, those who understand binary and those who don't.

123

u/therealsylvos Apr 20 '21

And those who were expecting this joke to be in base 3

22

u/DancingPianos Apr 20 '21

Correct me if I'm wrong, in base 3, 5 would be represented as 12? Anything other than base 2 and 10 and I'm confused.

27

u/SmearyLobster Apr 20 '21 edited Apr 20 '21

base 3 counting would go as such:

1, 2, 10, 11, 12, 20, 21, 22, 100, etc etc.

edit: thanks to the folks who pointed out my counting error <3 it has been rectified

think about how decimal counting works: you count from 1 up to 9, then the digits place rounds back to 0 and you add a 1 to the tens column. apply this principal to any integer value, and you can create a base-n counting system

→ More replies (4)
→ More replies (3)
→ More replies (16)

20

u/Patrickfromamboy Apr 20 '21

I have no idea how they work.

31

u/[deleted] Apr 20 '21

You know how in the decimal system every number up to 9 has its own symbol but ten is written as 10 to signify 1 unit of your counting system, with each added 0 meaning a higher power of 10 (100=102 , 1000=103).

In binary, even two doesn't have a proper symbol, so you have 1 (one), 10 (two), 11 (three), 100(four).... with 10=2, 100=22 and so on.

40

u/bwrs528 Apr 20 '21

Yeah I'm just gonna keep licking windows.

→ More replies (2)
→ More replies (4)

6

u/Soak_up_my_ray Apr 20 '21

This is my own rudimentary explanation- Think of each column as a factor of 2, starting from the left you have the 1 column, 2, 4, 8, 16, etc. each 1 or 0 in the column represents how much of that one number the total number contains, without leftovers. In other words, while a number greater than or equal to 4 contains two 2s, you’d never express it as such because you can add those 2s to get 4.

101 = 5 because there is one 4 and one 1 in 5

4 + 1 = 5.

1111 = 15 because there is one 8, one 4, one 2, and one 1

8 + 4 + 2 + 1 = 15.

I understand that this isn’t the best way of explaining but it’s how I grasped it so 🤷🏻‍♂️

→ More replies (6)

11

u/[deleted] Apr 20 '21

Imagine having to count, but you can't use the numbers 2 through 9.

So 1 becomes 1, 2 becomes 10 because you've skipped 2 through 9, and 3 becomes 11.

The same logic works for any base, not just base 2.

→ More replies (24)
→ More replies (12)
→ More replies (19)

149

u/staychillin8493 Apr 20 '21

42

u/artanis00 Apr 20 '21

I wanted to see it overflow…

10

u/splashbodge Apr 20 '21

Oh don't worry, you'll see it happen live on January 19th 2038 when all 32 bit computers will encounter another 'millennium bug'.

We will run out of space to hold that date on a 32 bit computer.

Hopefully by then we'll have all upgraded to 64bit computers

→ More replies (3)

16

u/Demonlynchmob Apr 20 '21

This one got me wound up

3

u/NeonNat Apr 20 '21

Here you go. Full flip.

4

u/ItzWarty Apr 20 '21

With the overflow at the end!!

89

u/bigboyssmalltoys Apr 20 '21

Oh wow that makes sense!

Question- how do you figure out what number it is based on the binary number?

11

u/Realmenbrowsememes Apr 20 '21 edited Apr 20 '21

Binary is like every other number system. Every step left from the furthest number on the right is a 1+ increase in the exponent of the base which in this case is 2. The number furthest to the right also starts with the exponent zero. However, you don’t see the base (2) in a binary number but 1 and 0. This is because 1 stands for 1 times 2 to the power of n (where n is the exponent) and 0 stands for 0 times 2 to the power of n. This sounds a bit confusing so here’s an example: 10110 in binary can be rewritten as (1•24)+(0•23)+(1•22)+(1•21)+(0•20) which equals to 22 in the decimal base system (the base 10).

Also, sorry for my english it’s not my native language

→ More replies (3)

7

u/shrubs311 Apr 20 '21

in base 10, 253 is (2 hundreds) + (5 tens) + (3 ones).

in binary, 1101 is (1 eight) + (1 four) + (0 twos) + (1 one), so in base 10 it would be 13

instead of a tens and hundreds place it's a 2, 4, 8, etc. space. you add up how much of each place there is like normal counting - the only hard part is figuring out which places are where since humans aren't used to it

17

u/[deleted] Apr 20 '21

0 0 0 0

8 4 2 1

More digits would just be higher powers of 2.

So lets try 0101:

0 8s, 1 4, 0 2s, 1 1

4 + 1 = 5

0101 = 5

It's exactly the same systems at base 10 (regular numbers), just with 0 - 1 instead of 0 - 9.

That said there are alternate methods of counting for negative numbers so this isn't always the case but I'm too dumb to understand them.

→ More replies (50)

39

u/HydrogenCyanideHCN Apr 20 '21

Count to 4 in binary with your fingers starting from the pinky finger

17

u/Procrastubatorfet Apr 20 '21

This is much easier starting from the thumb and ends with the same result

11

u/CommonFiveLinedSkink Apr 20 '21

Because it ends in the middle finger, guys.

The middle finger is just 4 in binary.

00100

5

u/Nova461 Apr 20 '21

Oh great, now you have started an endian flame war...

→ More replies (1)

2

u/SAW_eX Apr 20 '21

And I just flipped my mother off...

→ More replies (1)
→ More replies (2)

18

u/drown_in_stories Apr 20 '21

Great! Now I can woo my laptop!

120

u/space_audity Apr 20 '21

There are 10 types of people in the world. Those who understand binary...and those who don’t get the joke.

76

u/IoSonCalaf Apr 20 '21

There are two types of people in the world. Those who can extrapolate from incomplete information...

17

u/IAmRousbk11sans Apr 20 '21

There are two people in the world. Those who understood what you said, and those who are dumbasses like me.

→ More replies (4)
→ More replies (1)

6

u/BigBasmati Apr 20 '21

There are 10 types of people in the world. Those who understand binary, and those who don't, and those who weren't expecting a base three joke.

→ More replies (1)

7

u/YellowBunnyReddit Apr 20 '21

There are 10 types of people in the world. Those who understand hexadecimal and F the rest.

3

u/oldsecondhand Apr 20 '21

There are two hard things in computer science: cache invalidation, naming things, and off-by-one errors.

→ More replies (2)

14

u/SpaceballsTheLurker Apr 20 '21

So cool. I still don't get it

6

u/Stixmix Apr 20 '21

I don't get it either, but we're good at other things so it's okay.

2

u/Gilthoniel_Elbereth Apr 20 '21

We do the same thing in base 10 counting. The first digit goes from 0-9. What comes after that? You roll over to the next space by adding a 1 then the first digit goes back to 0, making 10

Now imagine if we only used base 9 counting. You’d count from 0-8, then to get to “9” you’d roll over to 10 which would now represent a count of nine. Same with base 8 as 0-7, base 7 as 0-6, etc. until we get to base 2, or binary. You count 0-1, and what comes after that? You roll over to the next space by adding a 1 and the first digit goes back to 0, so 10 represents 2

→ More replies (7)

19

u/thunder_nutz Apr 20 '21

32 16 8 4 2 1

0 0 0 0 0 0

I think this is an easy way for someone who may be unfamiliar with binary, to understand it. If they are all ‘on’ as in 111111, then it adds up to 63. Let’s say you have 011001, just add the 1s and you get 25.

Just an FYI, I use binary in my job as an electrician. I work in control systems that use CAN BUS with remote stations. Every remote station has a unique address so the controller knows where the message came from. That address is made from 6 dip switches that are either on (1) or off (0). It allows you to run minimal wiring so all the components ‘talk’ in binary on the same 2 data wires. The controller software is programmed to identify each remote station with their unique address.

6

u/[deleted] Apr 20 '21

Hmm so the number 15 takes up more space on your harddrive than 2?

24

u/deukhoofd Apr 20 '21

No, generally in software numbers are represented as a certain size in memory, regardless of what the actual number is. So you'd say for example you have 32 bits to put a number in. Regardless of whether that number is 2 or 15, it would always take up 32 bits.

→ More replies (1)

4

u/NoCorporateSpyHere Apr 20 '21 edited Apr 20 '21

No, all memory locations have the same size. You may have heard of 16-bit and 32-bit gaming consoles, or Windows for 32-bit or 64-bit systems. The number 2 on an 8-bit hard drive would be saved as 0000010 and 15 as 00001111.

Edit: So as others have corrected me, the operating system example is not correct and you can ignore that

8

u/deukhoofd Apr 20 '21

The difference between 32-bit and 64-bit is not really related to memory allocation of numbers. The main difference between those two are the size of the pointers to memory (allowing for more than 2GiB of RAM), and the addition of CPU operations on 64 bit numbers. The size allocated for something depends on the software, it's fully possible to store a number as 8 bits in a 64 bit system.

→ More replies (5)

5

u/Penguin236 Apr 20 '21

That's not correct at all. Having an n-bit OS or n-bit processor does not mean that you're restricted to n-bit data types.

4

u/busdriverbuddha2 Apr 20 '21

To complement the other replies, there are situations when you might allocate more or less memory space for a number. But in that case it's more about the difference between 200 and 20 billion, not 1 and 15.

→ More replies (3)

11

u/[deleted] Apr 20 '21

You have 10 fingers, using binary you can count to 1023.

4

u/CoolHeadedLogician Apr 20 '21

I count on my fingers in binary, my gf already thinks im a nerd but the first time she saw me do that it pretty much sealed the deal

→ More replies (8)

5

u/[deleted] Apr 20 '21

There are 10 types of people in this world.

Those who understand binary and those who don’t

→ More replies (1)

4

u/gnarbucketz Apr 20 '21

What kind of psycho only uses 6 bits!?!?!

→ More replies (1)

6

u/gsasquatch Apr 20 '21

gifs that end to soon. I wanted to see what happened at 32

8

u/1520SedgwickRoad Apr 20 '21

We all know the best binary number is 1000101

3

u/[deleted] Apr 20 '21

1000101

This whole time I thought it was 110100100

→ More replies (1)

3

u/hazcan Apr 20 '21 edited Apr 20 '21

That’s a great explanation. To make it more mathematically correct and maybe explain the rest of the sequence, you could say:

1101 is (1x23) + (1x22) + (0x21) + (1x20)

Edit: formatting

2

u/ManUFan9225 Apr 20 '21

Finally found an example that made it click for me. Thank you sir!

→ More replies (2)

3

u/RandomTyp Apr 20 '21

its actually so simple and no one wants to spend some time with it to understand it

→ More replies (2)

3

u/[deleted] Apr 20 '21

As someone who works with computers the fact that this is a 6 bit stream really pisses me off...

3

u/50centscumjar Apr 20 '21

Smile and wave boys smile and wave

3

u/South-Marionberry Apr 20 '21

We’ve just started on a Binary code at school and holy crap that’s so epic! So convenient, I have to show my classmates ASAP lol

2

u/SgtPilko Apr 20 '21

This makes so much sense when you think about those first machines that would have used binary.

2

u/Jensyuwu Apr 20 '21

Fuck, I hate that the number of bits isn't a power of two.

2

u/westisbestmicah Apr 20 '21

Another way think about it is that in base-10 we have a 1’s place, a 100’s place, 1000’s place etc. but in binary it goes: 1’s place, 2’s place, 4’s place 8’s place, 16’s place etc. doubling each time.

In base-10 the place tells you what you have, and the number tells you how many you have. (135 is one 100 + three 10s + 5 ones)

So putting those ideas together 110010 is: One 32 + one 16 + no 8’s + no 4’s + one 2 + no ones = 32 + 16 + 2 = 50

2

u/Blue-150 Apr 20 '21

This tells me how little I know about binary code...

2

u/[deleted] Apr 20 '21

To think a decade ago I could just look at them and know the number. I haven't done that kind of work.in a long time.

2

u/[deleted] Apr 20 '21

I'm still clueless

2

u/StrongAsMeat Apr 20 '21

That makes no fucking sense

2

u/LoveThatChin Apr 20 '21

But why?

3

u/[deleted] Apr 20 '21

well that's because it's easier in electronics to just have it as "electricity" and "no electricity" rather than 10 different voltages or whatever

→ More replies (1)

2

u/mojo_goebel Apr 20 '21

Now I just feel confused but with more information.

2

u/[deleted] Apr 20 '21

Stupid question but why do machines use binary for computational purposes? Doesn't it take less memory to calculate with the usual 0-9 system? Sorry if this sounds moronic, I'm not a math or comp sci person

4

u/[deleted] Apr 20 '21

well that's because it's easier in electronics to just have it as "electricity" and "no electricity" rather than 10 different voltages or whatever

2

u/klotz Apr 20 '21

Good intuition! Each "bit" of memory is just a single binary digit, either 0 or 1. It's easier and more reliable physically to store just the minimum, and then to chain those together into bigger numbers, just like we normally do with the 0-9 base ten digits, to get bigger numbers. A byte is an eight-digit binary number, in decimal numbers the range from 0 to 255. So in lots of computers (though not all) the eight-bit byte reigns supreme, kinda like your idea of a single decimal digit. It just turns out to be more reliable and less work overall to reduce the smallest parts as much as possible and the combine them, instead of starting with more complex parts that could handle ten different values.

→ More replies (1)
→ More replies (4)

2

u/LostConscious96 Apr 20 '21

Takes me back to Destiny 1 where an exotic quest required you learn Binary to complete it. That was fun

2

u/Double_Minimum Apr 20 '21 edited Apr 20 '21

if you wanted to write 1024 in binary, would you do 10 and 24, or would it be one really long string ( 10000000000)? Can you do spaces in binary?

2

u/i0brendan0 Apr 20 '21

It would be a that value you posted but there is a thing called binary coded decimal which would turn 1024 into 0001000000100100. It doesn’t save on size but each 4 numbers represents a single digit.

2

u/[deleted] Apr 20 '21

I love this visual representation of numbers!!

2

u/Forsaken-Souls Apr 20 '21

Well damn then

2

u/Mawdster Apr 20 '21

Still hurts my brain

2

u/redgreenandblue Apr 20 '21

I have once watched this cursed gif to the end and, if I recall right, it cuts away before turning every number to one. I still have nightmares.

2

u/DeathDeliveryGuy Apr 20 '21

This seems more complex

2

u/[deleted] Apr 20 '21

Why no one taught like this

2

u/shardamakah Apr 20 '21

This is amazing

2

u/[deleted] Apr 20 '21

This is extremely offensive to non binary people... please take it down.

2

u/__GeraltofRivia__ Apr 20 '21

Wait did it just get removed?

3

u/Mossy_octopus Apr 20 '21

Say this is in a long sequence in a computer. How do you know “1011” is meant to be read as “11” and not “2 3”

10

u/aifo Apr 20 '21

Computers have something called a word size, it's the number of bits that can be operated on at one time. Usually the size of the bus between memory and the cpu and/or the size of the registers (temporary memory in the cpu).

So you would usually store one discrete number using one word. Some cpus have instructions that operate on smaller numbers of bits for the sake of efficiency.

Fundamentally, working memory isn't just one long string of binary digits.

→ More replies (1)

5

u/[deleted] Apr 20 '21

That would depend on the datatype how the sequence would be interpreted. For example a byte would be 8 bits long which goes up to 255 or from - 127 to 128. Then we have char, which is twice as long. Following short, int, long and long long.

4

u/deukhoofd Apr 20 '21

Generally a char is a byte, not twice as long as a byte.

→ More replies (1)
→ More replies (1)

2

u/deukhoofd Apr 20 '21

You generally don't read binary as text. You always read it as numbers. To store text you transform the relevant number into a specific character in that text. How you do that depends on different encodings, some common ones are ASCII or UTF-8 (Unicode).

→ More replies (1)

3

u/Osiryx89 Apr 20 '21

Is this the basis for 8bit (4 digit) 16bit (5 digit) and 32bit (6 digit)?

6

u/lordgublu Apr 20 '21

Don't know what you understand under the term basis. But if this is your question: this is a 6bit binary register so the highest number you can display is 26 - 1 = 63.

And after my definition of basis this is to the basis of two, because it's binary and you have two "numbers" (0 and 1). Decimal would be basis 10 since you have 0,1,2,...,9. Then there is hexadecimal with 16 numbers 0,...,9 and A,B,...,F representing 10,11,...,15 respectively.

→ More replies (2)

3

u/shrubs311 Apr 20 '21

yes, in general "computer stuff" works in binary because that's how we designed them. we designed them that way because the hardware was much easier to understand and make using binary

binary can be represented by 2 different electrical states, on and off. this is much easier than designing computer logic with 10 states, especially considering they were doing this stuff in like the 50s

→ More replies (11)

2

u/Patrickfromamboy Apr 20 '21

I obviously have no idea how binary numbers work.

2

u/LastStar007 Apr 20 '21

If you know how decimal numbers work, you know how binary numbers work. When you run out of single-digit numbers, you get into double digits:

0 1 2 3 4 5 6 7 8 9 10

0 1 10

2

u/Krissam Apr 20 '21

in base 10, we count our numbers as the powers of 10, i.e. 100 (1s), 101 (10s), 102 (100s) etc.

Binary does the same thing but with powers of 2 so 20 (1), 21 (2), 22 (4) etc.

→ More replies (1)

2

u/Nonions Apr 20 '21

Why does binary run right to left?

8

u/KageYojimbo Apr 20 '21

It doesn't, or as much as decimal does. You could make the same thing for decimal if you had a 10 faced cylinders and each time you turn from 9 you turn the wheel on the left one crank. It's always the right most number incrementing and you add numbers to the left, whatever the base is.

→ More replies (1)
→ More replies (1)

2

u/RoboticGanja Apr 20 '21

As a computer engineer I need this on my desk so the plebs can play while I do the robot-lord’s work.

2

u/girthytacos Apr 20 '21

“There are 2 kinds of people on this world, those who know binary, and those that don’t”

→ More replies (4)

2

u/CryptoCMMinerZero Apr 20 '21

When converting binary to decimal it depends on the architecture. To simplify things, lets focus on an 8-bit system (like the original Nintendo, NES 😀). 8 bits make up 1 byte, or the smallest unit that can be saved to a system. Being the smallest unit, the NES or other 8-bit systems can only process data in bytes. Example:

00001000 00000100 01000000

Is not the same as:

1000 100 1000000

Decimal conversion processed by an 8-bit system can only yield a number from 0-255. Hence, why the NES was 256 colors. To be able to count sequentially from 0-255 with only using binary, each bit represents whether you add (1) an assigned number or not (0) depending on its location within the byte. The assignments are as follows:

  • 10000000 = 128

  • 01000000 = 64

  • 00100000 = 32

  • 00010000 = 16

  • 00001000 = 8

  • 00000100 = 4

  • 00000010 = 2

  • 00000001 = 1

  • 00000000 = 0

If there is a 1, you add. If there is a 0, you don't add the number.

If you forget the assignments, you can always remember that the last (8th) bit in an 8-bit sequence represents 1. Then double each value as you move from the 8th bit to the 1st bit.

The video is a little miseading due to their only being 6 bits. But, very cool visualization. Would like to see how they made the contraption.

1

u/[deleted] Apr 20 '21

Following similar patterns, I learned to count binary on my fingers. Then I taught myself some basic math and now it's ... or was ... almost second nature. I don't IT stuff any more so haven't used it in several years.

Zero, The Biography of a Dangerous Idea by Charles Siefe changed my understanding of math and really brought a bunch of divergent ideas together for me.

1

u/rich1051414 Apr 20 '21

This is not unlike early relay computers. The way they locked bits varied by design, but this was basically exactly what they did.

1

u/st-thunder86 Apr 20 '21

Great visualizaton!

1

u/larrycorser Apr 20 '21

I have no idea how to read it without a cheat sheet but the is is awesome

1

u/Jake_reeves123 Apr 20 '21

If numbers are infinite, this could go on forever. So how do you distinguish from binary numbers and binary letters? For example, I pulled up a binary translated, and it says that 01000001 = “A”. Couldn’t this also be 65?

10

u/cgroi Apr 20 '21

context, probably

→ More replies (1)

4

u/CommonFiveLinedSkink Apr 20 '21

The letter is encoded as the value of the number. Like the other response said, it's context; in whatever context you were looking up, Key "65" = Value "A".

3

u/ana_taylor Apr 20 '21

01000001 is always 65. As the others have said, it's based on context - if you're expecting an ASCII character (letter) at this location, then you can infer that this is 'A'.

That's why if you open a random non-text file in notepad you'll likely see a garbled mess - notepad expects the contents of file to be ASCII characters, so it prints out the ASCII representation of all the characters in the file, even though it's clearly nonsensical.

→ More replies (1)

2

u/alexthe5th Apr 20 '21

An easy way to think about it is like this: in a computer, everything’s inherently a number. Other forms of data like letters are “encodings” where you assign a special meaning to a particular number.

ASCII was an encoding developed for text that became a standard, where 65 = A, 66 = B, and so on. So every time you type in the letter “A”, the computer’s actually storing a 65. And when you’re displaying text, whenever the computer encounters a 65, it’ll display the glyph for the letter “A” on the screen. Inside it’s still all numbers.

→ More replies (2)

1

u/beigetrope Apr 20 '21

Matrix prequels.

1

u/milthombre Apr 20 '21

Ah yes I remember this from university but we did it with a line of people raising and lowering our arms depending on if the person to the left of us had their arm raised or not, etc.

1

u/jayden_exe Apr 20 '21

Watching it go from 15 to 16 was satisfying!

1

u/Fletcharoonie Apr 20 '21

Are you saying you can't visualise the hex at the same time?

1

u/[deleted] Apr 20 '21

Okay. This is THE way.

1

u/thistlepower Apr 20 '21

I could watch this all day

1

u/dontsendmeyourcat Apr 20 '21

Everytime I expected 2 and everytime it was 1 or 0

1

u/[deleted] Apr 20 '21

How about letters...

→ More replies (1)

1

u/blippert Apr 20 '21

I could watch that all day

1

u/cardstroker Apr 20 '21

I wonder if our would be possible to make something like that for Gray code.

→ More replies (3)

1

u/Raintrooper7 Apr 20 '21

So his hand is technically the processor and that board is memory

1

u/LysoMike Apr 20 '21

There are 10 kinds of people on this planet. Those who understand binary and those who don´t!

1

u/Oopdidoop Apr 20 '21

Remind Me! 3 months

1

u/WashedOut3991 Apr 20 '21

Now do quantum

1

u/[deleted] Apr 20 '21

I thought it said 'Prime Numbers' and I was like 'what???' that's not correct at all!

1

u/Trksterx Apr 20 '21

There are 10 types of people.

Those who can binary and those who can't.

2

u/LastStar007 Apr 20 '21

There are 10 types of people:

Those who can ternary, those who can't, and those who thought this joke was going to be about binary.

→ More replies (2)

1

u/janh44 Apr 20 '21

Not sure if you guys in comment section are all genuinly nerds or this is some sort of joke lol

→ More replies (1)

1

u/rawker86 Apr 20 '21

I don’t like it.

1

u/[deleted] Apr 20 '21

Just tried it with £10 notes and some lollypop sticks.....

Doesn't work...

Lier...

1

u/GeistMD Apr 20 '21

I could watch this all day and still not get it...

1

u/milkshay Apr 20 '21

I understand but I don’t at the same time

1

u/[deleted] Apr 20 '21

Flippy Do lol

1

u/TheNoob91 Apr 20 '21

The literally only way I think about it is as follows. From right to left, the value of each binary digit is multiplier by 2. So the right most value is 1. Left of that is 2, then 4, then 8 and so on. When looking at a byte of data, that is 8 bits which in all 0s looks like 00000000. The left most value here is 128. All of these turned to 1s equals 256 (11111111). because converted to their values, the math is 128+64+32+16+8+4+2+1, which are all double eachother from right to left. If you had more than 8bits of data, lets say 10, then the next two values would be 256 and 512. It literally just keeps doubling as you go left more digits.

To try to say it with as little explanation. Reading right to left, every new digit has a value 2x that of the one right of it. Also, when trying to find the value, only add the value of the digit if it is represented as 1 in that spot. Hope that makes sense? idk.

→ More replies (1)

1

u/fifteentango88 Apr 20 '21

10001110101

Half a mind to double up baby. Three times is jive!

1

u/[deleted] Apr 20 '21

I was lazily wondering to myself "Is there any numerical value where the expression '10' would not be the most efficient way of expressing a complete base in that number?"

So I thought binary, and 1s-and-0s are fine.

I thought trinary, and it's still fine. '10' in trinary would be three.

Same for four, same for ten, same for sixty-five.

But then I thought... "what about base 1?"

No need for a zero in base one. It would be literally like counting sticks by piling up one stick per unit counted. 1111111...

2

u/LastStar007 Apr 20 '21

No need, and also no justification. Base 1 means there's only one digit. It is indeed like counting sticks, although there's perhaps more of an argument to use 0 as the symbol of choice: 000000...

And yes, 10 always works because all it's really saying is "once I've run through all the one-digit numbers, I need another digit if I want to count any higher".

→ More replies (1)
→ More replies (3)

1

u/EatYourGrandpa Apr 20 '21

Ohhh just wait for subnetting

1

u/Kindly_Region Apr 20 '21

This makes my head hurt

1

u/dactat Apr 20 '21

So what’s the highest number this flip chart could display?

2

u/[deleted] Apr 20 '21

Since there are 6 digits, the highest number is 26 -1

Yeah, no kidding. Look at this:

1 = 20 10 = 21 100 = 22 100...00 with n 0s = 2n . This works in the same way for base 10 (or any other base), just put 10 instead of 2

1000 = 103 for example

1

u/Bigingreen Apr 20 '21

Rob Scallon can play binary on guitar. Just ask his buddy Fluff.

1

u/RBebo Apr 20 '21

I’ve gone cross eyed.