Presentation is loading. Please wait.

Presentation is loading. Please wait.

Data Storage Introduction to computer, 2nd semester, 2010/2011

Similar presentations


Presentation on theme: "Data Storage Introduction to computer, 2nd semester, 2010/2011"— Presentation transcript:

1 Data Storage Introduction to computer, 2nd semester, 2010/2011
Mr.Nael Aburas Faculty of Information Technology Islamic University of Gaza

2 Hexadecimal (Hex) Hex is a numbering system that uses Base 16. The numbers are represented normally, but the numbers 1010 through 1510 are represented by the letters A through F 1 hex digit is equivalent to 4 bits Numbers are 0,1,2…..8,9, A, B, C, D, E, F. The following shows that the number (2AE)16 in hexadecimal is equivalent to 686 in decimal. The equivalent decimal number is N = = 686.

3 Hexadecimal (Hex) Using hexadecimal, a very large binary string of 1s and 0s can be represented with just a few hexadecimal numbers by breaking the binary number into groups of four and then using the hexadecimal equivalent; for example, can be written as

4 Hexadecimal to decimal
The following shows how to convert the hexadecimal number (1A)16 to decimal = 1 × A × 160 = ×1 =16+10 = 26 convert (F4C)16 to decimal = (F x 162) + (4 x 161) + (C x 160) = (15 x 256) + (4 x 16) + (12 x 1)

5 Decimal to hexadecimal
convert (4768)10 to hex. = 4768 / 16 = 298 remainder 0 = 298 / 16 = 18 remainder 10 (A) = 18 / 16 = 1 remainder 2 = 1 / 16 = 0 remainder 1 Answer: 1 2 A 0

6 Hexadecimal to binary (306 ) = (00110000 0110) (24C)16
Each hexadecimal digit is converted to 4-bit patterns 2 → 0010, 4 → 0100, and C → 1100 (306 ) = ( )

7 Binary to hexadecimal Convert (0010110001101011)2 to hexadecimal?
We first arrange the binary number in 4-bit patterns: E 2 Convert ( )2 to hexadecimal? C B

8 Octal The Octal numbering system is similar to the Hexadecimal numbering system. This big difference is that the maximum value for Octal is 7 since it is Base 8 1 octal digit is equivalent to 3 bits.

9 Octal (1256)8

10 Octal to Decimal convert (632)8 to decimal
= (6 x 82) + (3 x 81) + (2 x 80) = (6 x 64) + (3 x 8) + (2 x 1) = = (410)10

11 Decimal to Octal convert (177)10 to octal 177 / 8 = 22 remainder is 1
Answer = 2 6 1

12 Binary to octal = 3478 =

13 Octal to binary convert (632)8 to binary ( )2


Download ppt "Data Storage Introduction to computer, 2nd semester, 2010/2011"

Similar presentations


Ads by Google