Lesson Objectives Understand the hexadecimal numbering system

Slides:



Advertisements
Similar presentations
Candidates should be able to:
Advertisements

John Owen, Rockport Fulton HS
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.
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.
Copyright (c) 2004 Professor Keith W. Noe Number Systems & Codes Part I.
Chapter 4.2 Binary numbers: Arithmetic
Binary Conversion In today’s lesson we will link together the binary and algorithm topics by looking at how to get the computer to: convert binary to decimal.
Computer Number Systems This presentation will show conversions between binary, decimal, and hexadecimal numbers.
Topic 4 Computer Mathematics and Logic
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.
Bit Patterns – Day 2 Scott Baranick & Daniel Velasquez.
Fundamentals of Python: First Programs Chapter 4: Number Systems.
IT253: Computer Organization
Binary Arithmetic In today’s lesson we will look at: a reminder of how binary works adding binary numbers overflow complements negative numbers and subtraction.
Chapter 4: Representation of data in computer systems: Number OCR Computing for GCSE © Hodder Education 2011.
Number Bases In today’s lesson we will look at: what we mean by a number base how ordinary numbers work a number system called binary why binary is useful.
CMSC 104, Lecture 051 Binary / Hex Binary and Hex The number systems of Computer Science.
Converting From decimal to Binary & Hexadecimal to Binary
Hexadecimal Data Representation. Objectives  Know how the Hexadecimal counting system works  Be able to convert between denary, binary & hexadecimal.
Data Representation Hexadecimal  Although computers work in binary it is sometimes inconvenient for humans to read everything in Binary. For example in.
Candidates should be able to:
Extending Binary In today’s lesson we will look at: representing different types of numbers possible errors binary coded decimal (BCD) comparing BCD with.
BINARY Toby Wilson. LEARNING OBJECTIVES  Be able to convert binary to denary  Be able to convert denary into binary  Be able to explain how computers.
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 Number System Representation of Data in Computer Systems.
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.
CMSC 1041 Binary / Hex Binary and Hex The number systems of Computer Science.
Numbering Systems and Conversion Understand How Computing Devices Work 1.
STARTER – CRACK THE CODE
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
WHY HEXADECIMAL?. Why bother with Hexadecimal? 1. Binary numbers are difficult for us to work with. 2. Hexadecimal can be used as “shorthand” for binary.
© 2016 AQA. Created by Teachit for AQA Converting between number bases Lesson.
Decimal Numbers.
Binary, Denary, Hexadecimal Conversion Binary Addition
Different Numeral Systems
Unit 18: Computational Thinking
Hexadecimal Conversion
Recap Add these numbers together in binary
Binary numbers: Week 7 Lesson 1
Copyright (c) 2004 Professor Keith W. Noe
Lesson objectives Understand how computers represent and manipulate numbers [unsigned integers, signed integers (sign and magnitude, Two’s complement)
Tools of Web Development 1: Module A: Numbering Systems
Number Bases In today’s lesson we will look at:
Lesson Objectives Aims You should be able to: Convert Denary to Binary
Number Bases In today’s lesson we will look at:
Lesson Objectives To understand how to add 4 and 8 bit binary numbers together To understand what is meant by the term “Overflow” ALL students will add.
Hexadecimal Conversions
Network Media, models and number systems
Binary / Hex Binary and Hex The number systems of Computer Science.
Binary Lesson 3 Hexadecimal
Data Representation Conversion 05/12/2018.
Data Hexadecimal.
Topic 3: Data Hexadecimal.
(return of the…) Data blast
Binary Lesson 3 Hexadecimal
Binary Lesson 3 Hexadecimal
Binary Lesson 3 Hexadecimal
AP Computer Science LESSON 1 on Number Bases.
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
WJEC GCSE Computer Science
Binary Lesson 7 Review of Binary and Hexadecimal
Lecture 36 – Unit 6 – Under the Hood Binary Encoding – Part 2
Section 6 Primitive Data Types
Presentation transcript:

Lesson Objectives Understand the hexadecimal numbering system Convert numbers between hexadecimal and denary, and vice versa ALL students be able to count in hex from 1 to 16 MOST students will convert hex numbers into denary SOME students will convert numbers between hex, denary and binary

1 2 3 4 1 You already know about base 10 (Decimal/Denary) And you’ve just learnt about base 2 (Binary) 1 2 3 4 10 1000 100 x10 1 2 8 4 x2

Why do we need binary numbers? Because computers work on the principle of 2 states, that something is either ON/TRUE or OFF/FALSE. This can only be done with base 2 (binary) If it was done with decimal/base 10 there would be 10 different states!

The problem with binary… There is one big problem with binary…numbers can become VERY long! In order to make it easier for a human programmers to work with binary numbers, they use the hexadecimal system (like a binary shortcut)

Hexadecimal As we move left, the column headings increase by a factor of sixteen x16 x16 x16 1 2 3 16 4096 256 This number is: 1 x 256 + 2 x 16 + 3 x 1 = 291 It’s still two hundred and ninety-one, it’s just written down differently How can there be sixteen possible digits in each column, when there are only ten digits? http://www.advanced-ict.info/interactive/hexadecimal.html

Hexadecimal Hexadecimal uses the digits 0-9 and the letters A-F to represent the denary numbers 0-15 Den Hex 8 1 9 2 10 A 3 11 B 4 12 C 5 13 D 6 14 E 7 15 F Notice how 0 is classed as a digit, so there are 16 numbers in total from 0 to 15

Making bigger numbers You do it in exactly the same way 16 1 Den 1x16 1x16 1x16 + 1x1 17 A 1x16 + 1xA(10) 26 A(10)x16 160 2 B 2x16 + 1xB(11) 43

Where is it used? When have you seen numbers being represented as letters? Hex is often used for 32-bit colour values, especially on web pages FF00EE99 instead of 11111111000000001110111010011001. http://www.advanced-ict.info/interactive/colours.html

255 Denary 255 Binary 11111111 Hexadecimal FF

Large binary numbers are hard to remember Programmers use hexadecimal values because: each digit represents exactly 4 binary digits; hexadecimal is a useful shorthand for binary numbers; hexadecimal still uses a multiple of 2, making conversion easier whilst being easy to understand; converting between denary and binary is relatively complex; hexadecimal is much easier to remember and recognise than binary; this saves effort and reduces the chances of making a mistake.

You convert denary to hex in the same was as binary 16 1 D 2 Convert the denary number 45 into a hex number Step 1: How many times does 16 go into 45? 45 / 16 = 2 (with 13 remaining) Step 2: How many times does 13 go into 1? 13! 13 in hex is D

Let’s do another one 16 1 7 C Convert the denary number 199 into a hex number Step 1: How many times does 16 go into 199? 199 / 16 = 12 (with 7 remaining) Step 2: 12 in hex is C Step 2: How many times does 7 go into 1? 7! 7 in hex is 7!

Lesson task: Complete the denary to hex conversions in your workbook. Extension: If you complete, have a go at the cross word task in your booklet.

Hex to binary To convert from hexadecimal to binary treat each digit separately. It may be easier to go via denary to get a binary number. So DB in hexadecimal is 11011011 in binary. Hex D B Denary 13 11 Binary 1