A Simple Intro To The Hexadecimal System
A Simple Intro To The Hexadecimal System
hexadecimal system
By Huo Xi Cheng
What is the hexadecimal system?
it's just like the base 10 system we use today, except it is in base 16
Computers use this systems sometimes instead of the binary system, as it shorter
compared to binary, and thus more information can be stored. It is also easy to
convert from hexadecimal to binary
How do you convert hexadecimal to binary?
It is quite simple. Take a random hexadecimal number, say A7. A corresponds to
10 in the decimal system, 7 corresponds to 7. 10=2^3*1+2^2*0+2^1*1+2^0*0
7=2^3*0+2^2*1+2^1*1+2^0*1
The answer is simply the first value (bolded)(1010) followed by the second value
(underlined)(0111)
Thus, A716=101001112
How do you convert binary to hexadecimal?
First, seperate the binary numbers into sets of 4, starting from behind
(continued)
How do you convert binary to hexadecimal?
(continued)
Note that 00002=016 00012=116 00102=216 00112=316 01002=416 01012=516
The first portion of the number is 1(or 0001). It is clear that 00012=116
First convert each hexadecimal digit into its corresponding decimal number,
namely: 016=010 116=110 216=210 316=310 416=410 516=510 616=610 716=710
(continued)
How to convert hexadecimal to decimal? (continued)
Take the last digit of the hexadecimal C0DE16 (E16). E16=1410 Multiply 14 by 16^0.
14*16^0=14
Take the 2nd last digit (D16). D16=1310 Multiply 13 by 16^1. 13*16^1=208
Take the 3rd last digit (016). 016=010 Multiply 0 by 16^2. 0*16^2=0
The number of bits determine the ‘amount’ of that color. The more the amount, the
brighter the color.
The three colors in different amounts can create all the colors on earth. We can
write a color like this:
#255255255 The 255 in red represent red, the 255 in green represents green, the
255 in blue represents blue.
The real life application of hexadecimal numbers in a
RGB display
This diagram may help you understand how the system works.
The hexadecimal numbers represents different amounts of color of the three types
(red green blue).