0 Up votes0 Down votes

17 views6 pages...

Nov 08, 2014

© © All Rights Reserved

PDF, TXT or read online from Scribd

...

© All Rights Reserved

17 views

...

© All Rights Reserved

- PC 1616 1832 1864
- ADE Chapter 1(1)
- fx100MS_115MS_E-2
- Lecture 1 Digital
- HW6 Solving Inequalities
- Lessons in digital electronics
- number system'.pptx
- Binary Number
- Number System
- PC1616-PC1832-PC1864_Inst-Man_v4-5_En
- APA3163
- Digital Quiz
- iopu
- pcrepattern.3
- R1. Computer Fundamental by Goel Anita
- Campify - Your Student Life Sorted_5
- MAK-ISNAINI-(38-48)
- Altera Quartus II Tutorial Part2-2013
- Mapping the Atari
- 1. Granularity of Locks and Degrees of Consistency in a Shared Database - Gray

You are on page 1of 6

2 Hexadecimal Numbers

In the previous section we looked at the decimal (base 10) and binary (base

2) number systems. In this section we look at the hexadecimal (base 16)

number system.

computing.

The decimal (base 10) number system uses 10 digits:

0, 1, 2, 3, ..., 9

The binary (base 2) number system uses 2 digits: 0, 1

The hexadecimal (base 16) number system uses 16

digits: 0, 1, 2, 3, ..., 9, A, B, C, D, E and F.

The first 10 whole numbers in the hexadecimal system

are:

0,

1,

2,

3,

4, 5,

6,

7,

8,

9.

Once we reach 9, we run out of ordinary digits, since

there are only ten digits available.

Hexadecimal uses the following convention:

The number 1010 = A16 , 1110 = B16 ,

1510 = F16.

1310 = D16 , 1410 = E16 ,

1210 = C16,

number system are:

0, 1, 2, 3, 4, 5, 6, 7, 8, 9, A, B, C, D, E and F.

After we reach the number F there are no more digits

left to use for the units digit. The next number is 10.

Continuing to count we have:

10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 1A, 1B, 1C, 1D,

1E, 1F, 20, ...., 2F, 30, ..., 3F

Problems 1.2.1

numbers in each of these sequences:

a) 45, 46, 47, 48, ...

b) 116, 117, 118, ..

c) 3A7, 3A8, 3A9, ...

.d) AB, AC, AD, ...

e) A997, A998, A999,....

Positional Weights of Digits in the Hexadecimal System Conversions Hex to Decimal and Decimal to Hex

The hexadecimal column weights are:

164

163

162

161 160

Example 1.2.1

positional notation is:

13A716 = 1 x 163 + 3 x 162 + A x 161 + 7 x

160

To convert a hexadecimal number to a decimal number,

we evaluate the expression for the number using

positional notation.

Example 1.2.2

evaluating the positional notation expression.

13A716 = 1 x 163 + 3 x 162 + A x 161 + 7 x 160

= 1 x 4096 + 3 x 256 + 10 x 16 +

7x1

= 503110

Problem 1.2.2

Problems 1.2.3

numbers:

a) 8C516

b) AEF116

As we did for converting a decimal number to a binary

number, to convert a decimal number to hexadecimal

number, we shall use repeated division and note the

remainder after each division. There were only two

possible remainders 0 and 1 when converting to

binary. In converting to base 16, however, there are

16 possible remainders.

812310 is converted to hexadecimal in the table

below. This method is called the calculator method.

Division

Remainder

Hex

0.6875 x 16 = 11

0.6875 x 16 = 11

0.9375 x 16 = 15

The conversion can be checked by converting 1FBB16

back to a decimal number.

1FBB = 1 x 4096 + 15 x 256 + 11 x 16 + 11 = 812310

Problem 1.2.4

Convert 78610 into a hexadecimal number and

check.

Converting Binary Numbers to Hexadecimal Numbers

As they increase in magnitude, binary numbers quickly

become unwieldy for those involved with their use in

computers. The five digit decimal number 83 472 in binary

is 1 0100 0110 0001 0000. It can be seen that a 0 or 1

can easily be dropped or added.It is easy to convert binary

numbers to their equivalent hexadecimal form. For this

reason, binary numbers when used with computers are

often written in hexadecimal form.

LSD

MSD

Example 1.2.3

To convert a binary number such as 1 0100 0110 0001

0000 above to hexadecimal, convert each group of 4 digits

beginning with the LSD into hex.

Binary

Number

Grouped

into 4's

Equivalent

1

Hex Digit

0100

0110

0001

0000

Problem 1.2.5

Show that 10 1011 00012 = 2B116

To convert a hexadecimal number to a binary number,

we reverse the above procedure.

Example 1.2.4

To convert the hexadecimal number 9F216 to binary,

each hex digit is converted into binary form.

9F216 = 1001

1111

00102 .

Problems 1.2.6

a) Convert hexadecimal 2BF9 to its binary equivalent.

b) Convert binary 110011100001 to its hexadecimal

equivalent.

Hexadecimal Numbers in Computing

Although numbers in a computer are stored in binary

form, the hex representation is usually used. The hex

representation of a byte requires only two digits and

the hex representation of two bytes (a word) requires

only 4 digits in hex compared to 16 digits in binary.

representation for all the ASCII codes from 0 to 127.

Source:

http://www.satoamerica.com/technical/techtips/asciihe

x.html

systems:

a) decimal number system

b) binary number

system

c) hexadecimal number system?

2. What are the decimal and hexadecimal equivalents

of 1 11012?

3. Convert 1011 1111 0111 10102 to its hexadecimal

equivalent.

4. What are the binary and hexadecimal equivalents of

4310?

- PC 1616 1832 1864Uploaded byaliosax
- ADE Chapter 1(1)Uploaded byEric Loke
- fx100MS_115MS_E-2Uploaded byflorinelvv
- Lecture 1 DigitalUploaded byMinh Hoang
- HW6 Solving InequalitiesUploaded byAlice Dwyer
- Lessons in digital electronicsUploaded byNGOUNE
- number system'.pptxUploaded byBramara Sri
- Binary NumberUploaded byRizwanbhat
- Number SystemUploaded byImamHossainSantho
- PC1616-PC1832-PC1864_Inst-Man_v4-5_EnUploaded byalinuntaru
- APA3163Uploaded bygsmsby
- Digital QuizUploaded bySri Mathi
- iopuUploaded bywhiterose
- pcrepattern.3Uploaded byNguyễn Võ Ngọc Thạch
- R1. Computer Fundamental by Goel AnitaUploaded byssjatav
- Campify - Your Student Life Sorted_5Uploaded bykwik1804
- MAK-ISNAINI-(38-48)Uploaded byRahmah Arie Vadison
- Altera Quartus II Tutorial Part2-2013Uploaded byHingryd Rauen
- Mapping the AtariUploaded byZane Roberts
- 1. Granularity of Locks and Degrees of Consistency in a Shared Database - GrayUploaded byPanos Koukios
- Code ConverterUploaded byShailesh Waghole
- Assignment 9.docxUploaded byKhayHnins
- Tutorial Assignment 3Uploaded byShukran Ahmed
- programacin EOG.docxUploaded byOscar Fabricio Archila
- tutorial-complexityUploaded byAzim Khan
- חישוב מבוזר- הרצאה 12 | CutsUploaded byRon
- hamming distancUploaded bydominggo
- LadderProg ManualUploaded byJeny Kissyou
- yr4 paper2Uploaded byFaisal Risor Legacy
- UntitledUploaded byisha_sangal

- Servo Motor ControlUploaded byChirkov Kire
- Mobile Phone HackingUploaded byg4ubh
- Attack as Service Ijeit1412201204_57Uploaded byCarlos Brandão
- Fire WalkingUploaded byg4ubh
- Binay Octal HexUploaded bySyed
- Arp Spoofing SlidesUploaded byjasonddennis
- ct2Uploaded byg4ubh
- 108483012 Power System PPT on CORONAUploaded byg4ubh

- Lipid Bilayer Summary NotesUploaded bydoaa
- Common Requirements HvacUploaded byOsama Habboob
- Meta Similarity Noise-Free Clusters Using Dynamic Minimum Spanning Tree With Self-Detection of Best Number of ClustersUploaded bysaeedullah81
- Onsrud Cutter Inc - CNC Production Routing GuideUploaded bySpiinn Phattrakul
- [Imre Ruzsa] Introduction to Metalogic With an AP(BookZa.org) (1)Uploaded bygiancarlo7mantero7as
- wrerwrUploaded byChristian Mandawe
- S3.1 Hand Automate the Boring Stuff KilkellyUploaded byWilfrid Dutruel
- ME220-MainExam2007Uploaded byviru_
- Prim 3- Booklet 1st Term ( Macmillan)Uploaded byبسملهعصام
- Work and EnergyUploaded byIjal Haizal
- Montage Library editorUploaded byBastian Schick
- 18-SAMSS-625Uploaded byseeralan balakrishnan
- Operating Manual CCD Vers 1.3Uploaded byRonni Nonii
- hw3KEYUploaded byquang140788
- ADMS4503_Chap1Uploaded bychipieshrymp0611
- Java Lab ManualUploaded bynoodles18
- Pavel Osmera- Vortex-ring-fractal Structure of Atom and moleculeUploaded byKluff5878
- A Booke Called the Treasure for Traueilers Deuided Into Fiue Bookes or Partes, Contaynyng Very Necessary Matters, For All Sortes of Trauailers, Eyther by Sea or by Lande by W. Bourne (1578)Uploaded byLuciano Dondero
- OTC Robot Instruction (General)Uploaded byJim Longfield
- Principle of DC Generator _ Electrical4uUploaded byM Kumar Marimuthu
- Adjectives (2)Uploaded bySiti Qomariah
- JPUploaded bySaravanan Paramasivam
- SPE 131350 FINAL Low Passey Et AlUploaded byPaulo Ivo
- BOSCH - EFI Fuel Injection Systems.pdfUploaded byeldrainy
- TP163MGRUploaded byOmar Martinez Partida
- 2012 ICRAT Tutorial PratsUploaded bysandra22052004
- Process Control Report No.1Uploaded byIbrahimDewali
- 9709_s12_qp_22Uploaded byHubbak Khan
- Sabin's TheoryUploaded bycatherinepriya
- MemristorUploaded byCaDell AlvarEs

## Much more than documents.

Discover everything Scribd has to offer, including books and audiobooks from major publishers.

Cancel anytime.