Guys 11+1 = 100 how this makes sense ? I'm unable to get it. | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Guys 11+1 = 100 how this makes sense ? I'm unable to get it.

2nd Jun 2022, 12:33 PM
Davinder Kumar
Davinder Kumar - avatar
2 Answers
+ 2
Binary sum, for exanple, 1+1 in base2=10...in base 10 is 1+1=2...so 2 is equal to 10 in base 2.
2nd Jun 2022, 1:03 PM
Cristian Baeza Jimenez
Cristian Baeza Jimenez - avatar
0
It is the same thing that happens in any number system. When you exceed the digits available on one column, that column rolls back to zero and you carry 1 over to the next column. F+1 = 10 hexadecimal (radix 0-F) 9+1 = 10 decimal (radix 0-9) 7+1 = 10 octal (radix 0-7) 1+1 = 10 binary (radix 0-1) If adding the carry to the next column also exceeds the digits available then repeat the rollover and carry. FF+1 = 100 hexadecimal (radix 0-F) 99+1 = 100 decimal (radix 0-9) 77+1 = 100 octal (radix 0-7) 11+1 = 100 binary (radix 0-1)
3rd Jun 2022, 1:41 AM
Brian
Brian - avatar