Lets use a larger number and see how easy it is!
We will use the binary number of 011111111011 which is equal to 2,043 in decimal, which must be seperated into nibbles.
First lets recreate our HEX to decimal table.
Decimal to Hex conversion table.
| HEX |
0 |
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
A |
B |
C |
D |
E |
F |
Dec. |
0 |
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
The following table breaks our binary number into three nibbles.
| Nibble |
Nibble |
Nibble |
| 8 |
4 |
2 |
1 |
8 |
4 |
2 |
1 |
8 |
4 |
2 |
1 |
| 0 |
1 |
1 |
1 |
1 |
1 |
1 |
1 |
1 |
0 |
1 |
1 |
- The decimal equivelant for the leftmost nibble is 7.
- The decimal equivelant for the center nibble is 15.
- The decimal equivelant for the rightmost nibble is 11.
Using the Hex to Decimal conversion table we find that:
- The leftmost Nibble conversion from decimal to Hex is '7'.
- The center Nibble conversion from decimal to Hex is 'F'.
- The rightmost Nibble conversion from decimal to Hex is 'B'.
- Our result is 7FBh for our Hex number.
Thus we see that the original binary number of 011111111011, was equal to 2,043 in decimal, and is equal to 7FBh in HEX.
One thing to keep in mind is that when writing HEX upper case letters are proper and the lower case h represents the number as being written in Hexadecimal.
I told you it was easy, done in less than 5 minutes, great job!
Copyright ©2002-2006 Testbusters.net. All Rights Reserved.
Testbusters.net is not sponsored, endorsed or affiliated by any associated vendor.
Associated venders include, but are not limited to, Microsoft®, Cisco®, CompTIA®, Novell® etc.