Info on Hex Please

Status
This thread has been Locked and is not open to further replies. Please start a New Thread if you're having a similar issue. View our Welcome Guide to learn how to use this site.

antde5

Thread Starter
Joined
Dec 26, 2005
Messages
42
Im doing Binary and Hex at college, and i was wondering if anybody could supply me with any general info about Hex please, i would be very greatful if someone could help. thanks!
 
Joined
Jul 29, 2004
Messages
6,650
Code:
[SIZE=3]Generally, a byte contains 8 binary digits or bits and its value may vary from zero to 255 included.

When you're writing a number in decimal format, you're using its exponents of 10 to represent it :

45023 = 4 * (10**4) + 5 * (10**3) + 0 * (10**2) + 2 * (10**1) + 3 * (10**0)

In binary, you 're using exponents of 2 :

21 = 1 * (2**4) + 0 * (2**3) + 1 * (2**2) + 0 * (2**1) + 1 * (2**0) ---> 10101 -> byte representation -> 00010101

In hexadecimal, you're using exponents of 16.
As there are not enough symbols to represent the 16 first values, letters are used to complete the missing symbols :

0 --> 0
1 --> 2
.
.
9 --> 9
10 -> A
11 -> B
12 -> C
13 -> D
14 -> E
15 -> F

Why 16 values ? Because, they may all be represented in a half byte.

0 ---> 0001
1 ---> 0010
.
.
E ---> 1110
F ---> 1111

Hexadecimal is the best representation of byte as it implitcly displays the content of each bit.

If you have to represent the decimal 231 in hexadecimal :

231 = 14 * (16**1) + 7 * (16**0) --> E7

And E7 in binary is 1110 0111 ( E -> 1110 and 7 -> 0111 )[/SIZE]
 
Status
This thread has been Locked and is not open to further replies. Please start a New Thread if you're having a similar issue. View our Welcome Guide to learn how to use this site.

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

As Seen On
As Seen On...

Welcome to Tech Support Guy!

Are you looking for the solution to your computer problem? Join our site today to ask your question. This site is completely free -- paid for by advertisers and donations.

If you're not already familiar with forums, watch our Welcome Guide to get started.

Join over 807,865 other people just like you!

Latest posts

Staff online

Top