The Hexadecimal Number System Representation of Data in Computer Systems.

Slides:



Advertisements
Similar presentations
Candidates should be able to:
Advertisements

1 3 Computing System Fundamentals 3.5 Data Representation.
Number System C.I.T. Ch2.5. Denary, Binary, Hexadecimal Number System Denary Number System Ten is it’s base. Ten distinct values :0,1,2,3,4,5,6,7,8,9.
DATA REPRESENTATION CONVERSION.
A-Level Computing#BristolMet Session Objectives#8 express numbers in binary, octal and hexadecimal explain the use of code to represent a character set.
Hexadecimal In today’s lesson we will look at: the need for something other than binary how hexadecimal works how to convert between hexadecimal and binary.
Chapter 4.2 Binary numbers: Arithmetic
Data Representation in Computers
Computer Number Systems This presentation will show conversions between binary, decimal, and hexadecimal numbers.
Number systems Converting numbers between binary, octal, decimal, hexadecimal (the easy way)
Binary Conversions Number systems Binary to decimal Decimal to binary.
Numbering Systems Decimal (Denary) base 10. Clumsy when dealing with computers. Other systems –Binary –Octal –Hexadecimal Convenient when dealing with.
Hexadecimal and ASCII Lesson Objective: Understand the purpose of ASCII and how to use it. Lesson Outcome: Convert between Hexadecimal and ASCII Convert.
© GCSE Computing Candidates should be able to:  convert positive denary whole numbers (0-255) into 8-bit binary numbers and vice versa  add two 8-bit.
Number Systems.
Computing Theory – F453 Number Systems. Data in a computer needs to be represented in a format the computer understands. This does not necessarily mean.
Lecture 2 Bits, Bytes & Number systems
Chapter 4: Representation of data in computer systems: Number OCR Computing for GCSE © Hodder Education 2011.
CMSC 104, Lecture 051 Binary / Hex Binary and Hex The number systems of Computer Science.
Lecture 2 Binary Values and Number Systems. The number 943 is an example of a number written in positional notation. The relative positions of the digits.
Conversions Denary to Binary Method 1
Working with 8-bit bytes and hexadecimal
Hexadecimal Data Representation. Objectives  Know how the Hexadecimal counting system works  Be able to convert between denary, binary & hexadecimal.
GCSE Computing: A451 Computer Systems & Programming Numbers Representation of Data in Computer Systems.
Candidates should be able to:
Announcement!!! First exam next Thursday (I’m trying to give you a first exam before the drop date) I’ll post a sample exam over the weekend and will try.
A)Convert positive denary whole numbers (0-255) into 8-bit binary numbers and vice versa b)Add two 8-bit binary integers and explain overflow errors which.
HEXADECIMAL NUMBERS.
Units Representation of Data in Computer Systems.
ABFC... Home page Introduction Binary number system Hexadecimal number system Binary coded decimal Objectives Octal number system Click.
Introduction to Number Representation A451 GCSE Computing.
Number Systems. Topics  The Decimal Number System  The Binary Number System  Converting from Binary to Decimal  Converting from Decimal to Binary.
Hexadecimal (base 16) BY MAT D. What is hexadecimal  Hexadecimal is a number system like binary or denary that has 16 characters, the numbers 0-9 and.
The Hexadecimal System is base 16. It is a shorthand method for representing the 8-bit bytes that are stored in the computer system. This system was chosen.
Numbering Systems and Conversion Understand How Computing Devices Work 1.
Two’s Complement The language of machines, part II.
Starter Using the mini whiteboards record your answers: 1) Name 2 different Character Sets 2) Convert the Hex number 9E into denary 3) Convert the binary.
Conversions 1)Binary to Denary Method 1 Work out the position values of the binary bits and add those values together So above would be
WHAT IS BINARY? Binary is a number system that only uses two digits: 1 and 0. Any information that processed by a computer it is put into sequence of.
Unit 2.6 Data Representation Lesson 1 ‒ Numbers
Binary, Denary, Hexadecimal Conversion Binary Addition
Binary and Hexadecimal
Unit 18: Computational Thinking
Hexadecimal Conversion
Binary numbers: Week 7 Lesson 1
Lesson Objectives Understand the hexadecimal numbering system
2.0 COMPUTER SYSTEM 2.2 Number System and Representation
Lesson objectives Understand how computers represent and manipulate numbers [unsigned integers, signed integers (sign and magnitude, Two’s complement)
Lesson Objectives Aims You should be able to: Convert Denary to Binary
Representation of Data in Computer Systems
Unit 2.6 Data Representation Lesson 1 ‒ Numbers
Hexadecimal Conversions
Binary Lesson 3 Hexadecimal
Data Hexadecimal.
Topic 3: Data Hexadecimal.
(return of the…) Data blast
Binary Lesson 3 Hexadecimal
Binary Lesson 3 Hexadecimal
Binary Lesson 3 Hexadecimal
A-level Computer Science
Binary Lesson 4 Hexadecimal and Binary Practice
Lesson 4: Introduction to Hexadecimal
GCSE COMPUTER SCIENCE Topic 3 - Data 3.4 Hexadecimal Conversion.
Hexadecimal.
LO1 – Understand Computer Hardware
COMS 161 Introduction to Computing
Number systems Converting numbers between binary, octal, decimal, hexadecimal (the easy way)
Section 6 Primitive Data Types
Presentation transcript:

The Hexadecimal Number System Representation of Data in Computer Systems

Activity 1 2 minutes to convert the following hex numbers into denary: 1A B2 CA

Representing Numbers in Hexadecimal

Representation of Data in Computer Systems Remembering Hex As we know, computers can only deal with 2 numbers (0 and 1). The problem for computer scientists is that very quickly, a fairly small number like 258 (3 digits long) becomes the massive binary number of (9 digits!) To solve this issue, computer scientists came up with another number system to help them deal with base two numbers (binary) but without the long string of digits ! Learning Objectives: Numbers: c)Convert positive denary whole numbers (0-255) into 2-digit hexadecimal number and vice versa d)Convert between denary and hexadecimal equivalents of the same number e)Explain the use of hexadecimal to represent binary numbers.

Representation of Data in Computer Systems The Hexadecimal Number System The hexadecimal number system has place values which increase by the power of 16: Learning Objectives: Numbers: c)Convert positive denary whole numbers (0-255) into 2-digit hexadecimal number and vice versa d)Convert between denary and hexadecimal equivalents of the same number e)Explain the use of hexadecimal to represent binary numbers = 257

Representation of Data in Computer Systems Remembering the Hexadecimal Number System Because the second column is 16, we have to count to 15 in the 1s column before we can place a 1 in the 16s column But in all number systems, placing two digits in one column is not allowed. So in the Hexadecimal Number System we have to use new symbols to represent 11, 12, 13, 14 and 15. And what we use is letters! Learning Objectives: Numbers: c)Convert positive denary whole numbers (0-255) into 2-digit hexadecimal number and vice versa d)Convert between denary and hexadecimal equivalents of the same number e)Explain the use of hexadecimal to represent binary numbers. 161 Hexadecimal Place Values

Representation of Data in Computer Systems The Hexadecimal Number System Learning Objectives: Numbers: c)Convert positive denary whole numbers (0-255) into 2-digit hexadecimal number and vice versa d)Convert between denary and hexadecimal equivalents of the same number e)Explain the use of hexadecimal to represent binary numbers. 161 Hexadecimal Place Values Base 10Base 2Base A B C D E F

Representation of Data in Computer Systems Converting Hexadecimal into Denary If the hex number was AF… …we simply count the number of 16s together with the number of 1s Learning Objectives: Numbers: c)Convert positive denary whole numbers (0-255) into 2-digit hexadecimal number and vice versa d)Convert between denary and hexadecimal equivalents of the same number e)Explain the use of hexadecimal to represent binary numbers. 161 Hexadecimal Place Values 161 AF Ten 16s Fifteen 1s

On your whiteboards Convert the following hex number into denary: E2

On your whiteboards Convert the following hex number into denary: CE

Representation of Data in Computer Systems Converting Denary into Hexadecimal This is a little harder… We use the following method: -Count how many 16s fit into the number -Place the answer in the 16s column -Place the remainder in the 1s column Learning Objectives: Numbers: c)Convert positive denary whole numbers (0-255) into 2-digit hexadecimal number and vice versa d)Convert between denary and hexadecimal equivalents of the same number e)Explain the use of hexadecimal to represent binary numbers. 161 Hexadecimal Place Values 161 Example: Convert 20 into Hex How many 16s fit into 20? 1 Remainder? 4 1 4

Representation of Data in Computer Systems Converting Denary into Hexadecimal This is a little harder… We use the following method: -Count how many 16s fit into the number -Place the answer in the 16s column -Place the remainder in the 1s column Learning Objectives: Numbers: c)Convert positive denary whole numbers (0-255) into 2-digit hexadecimal number and vice versa d)Convert between denary and hexadecimal equivalents of the same number e)Explain the use of hexadecimal to represent binary numbers. 161 Hexadecimal Place Values 161 Example: Convert 235 into Hex How many 16s fit into 235? 14 Remainder? 11 E B

On your whiteboards Convert the following number into Hexadecimal: 174

On your whiteboards Convert the following number into Hexadecimal: 162

Representation of Data in Computer Systems Why Hexadecimal? The question that many people ask is why do computer scientists use hexadecimal?...fewer digits?...that is one reason So why not just use Denary? It is because it is easy to convert between Hex and Binary ! Learning Objectives: Numbers: c)Convert positive denary whole numbers (0-255) into 2-digit hexadecimal number and vice versa d)Convert between denary and hexadecimal equivalents of the same number e)Explain the use of hexadecimal to represent binary numbers. 161 Hexadecimal Place Values in binary ( 9 digits ) is 102 in hexadecimal ( 3 digits ) But it is still just 258 in Denary ( also 3 digits )

Representation of Data in Computer Systems The ease of converting between hex and binary… 161 Hexadecimal Place Values Binary: Hex: 9C Notice anything?... Learning Objectives: Numbers: c)Convert positive denary whole numbers (0-255) into 2-digit hexadecimal number and vice versa d)Convert between denary and hexadecimal equivalents of the same number e)Explain the use of hexadecimal to represent binary numbers.

Representation of Data in Computer Systems The ease of converting between hex and binary… 161 Hexadecimal Place Values Binary: Hex: 9C What about if we split the byte into nibbles? C = = 12 C = hex = 9 den 1001 = 9 den 9 hex = 1001 Learning Objectives: Numbers: c)Convert positive denary whole numbers (0-255) into 2-digit hexadecimal number and vice versa d)Convert between denary and hexadecimal equivalents of the same number e)Explain the use of hexadecimal to represent binary numbers

Representation of Data in Computer Systems So, to convert binary into hex we: 1.Split the binary byte into two nibbles 2.The left nibble is your left hex number 3.The right nibble is your right hex number 161 Hexadecimal Place Values Binary: Hex: Learning Objectives: Numbers: c)Convert positive denary whole numbers (0-255) into 2-digit hexadecimal number and vice versa d)Convert between denary and hexadecimal equivalents of the same number e)Explain the use of hexadecimal to represent binary numbers. C

Representation of Data in Computer Systems Convert this binary number into Hex… 161 Hexadecimal Place Values Binary: Step 1 (Split into nibbles) Step 2/3 (Convert each nibble into Hex) D Learning Objectives: Numbers: c)Convert positive denary whole numbers (0-255) into 2-digit hexadecimal number and vice versa d)Convert between denary and hexadecimal equivalents of the same number e)Explain the use of hexadecimal to represent binary numbers. D

Representation of Data in Computer Systems Convert this binary number into Hex… 161 Hexadecimal Place Values Binary: Step 1 (Split into nibbles) Step 2/3 (Convert each nibble into Hex) 1 Learning Objectives: Numbers: c)Convert positive denary whole numbers (0-255) into 2-digit hexadecimal number and vice versa d)Convert between denary and hexadecimal equivalents of the same number e)Explain the use of hexadecimal to represent binary numbers. F

On your whiteboards Convert the following binary numbers into Hexadecimal:

On your whiteboards Convert the following binary numbers into Hexadecimal:

Representation of Data in Computer Systems Convert from Hex to Binary… This is also easy…it is simply the reverse of the previous method: 161 Hexadecimal Place Values (0) Hex: Step 1 (convert each hex digit into nibbles) Step 2 (Join the nibbles together) 3D Learning Objectives: Numbers: c)Convert positive denary whole numbers (0-255) into 2-digit hexadecimal number and vice versa d)Convert between denary and hexadecimal equivalents of the same number e)Explain the use of hexadecimal to represent binary numbers.

Representation of Data in Computer Systems Convert from Hex to Binary… This is also easy…it is simply the reverse of the previous method: 161 Hexadecimal Place Values Hex: Step 1 (convert each hex digit into nibbles) Step 2 (Join the nibbles together) AB Learning Objectives: Numbers: c)Convert positive denary whole numbers (0-255) into 2-digit hexadecimal number and vice versa d)Convert between denary and hexadecimal equivalents of the same number e)Explain the use of hexadecimal to represent binary numbers.

On your whiteboards Convert the following Hexadecimal numbers into Binary: 1A

On your whiteboards Convert the following Hexadecimal numbers into Binary: B2

On your whiteboards Convert the following Hexadecimal numbers into Binary: CA