Saturday, June 4, 2016

Hexadecimal makes dealing with binary machine language easier for programmers

If you think about computers at core just being a lot of light switches that can either be "On' or "Off" then this illustrates it best. When any switch is "OFF" we represent this as a zero. When any switch is on we represent this with a 1. By arranging or organizing your switches in different sequences you get different outcomes either symbolically or actually depending upon how those switches are programmed to relate to each other. Then by creating "If Then Loops" or Yes or No loops and other possibilities you create all the things that Artificial intelligence or your Iphone or Computer or Tablet or whatever you have can do. The more switches the more "Memory" or processing power it has. And the speed is determined usually by how small the circuits are in the processing chips on board whatever computing device we are talking about.


All computers operate at base in Binary. Sometimes people call this binary or machine language. The languages people develop are often formulaic sort of like a shorthand algebra or something because it is hard for humans to think in binary language. For example,

Here is an easy conversion to see what I'm talking about:
BinaryDecimalHexadecimal
000
111
1022
1133
10044
10155
11066
11177
100088
100199
101010A
101111B
110012C
110113D
111014E
111115F
100001610
100011711
etcetcetc For example, 5 in binary is 101 and 17 in binary is10001. But the same numbers in hexadecimal would be 5 and 11 as you can see.So, it is easier to represent binary in hexadecimal than in the decimal system in regard to programming using machine language which makes it more convenient for programming whatever you want to do.

No comments: