Programming, Music, Games. Creation.

Posts tagged “er

Binary Numbers – The Easy way to Calculate!

Learning C with Bermuda

The table below explains everything!

 

0 1 0 0 1 0 0 1
27 26 25 24 23 22 21 20

 

Simply add the 2x when that specific place has ‘1’ instead of ‘0’

Therefore, the example above will be 01001001 = 26+23+20= 64+8+1 = 73

 

Simple and easy way to calculate binary numbers :)

 

OR you can simply use my Binary Swift v2 :P