Unit 2.6 Data Representation Lesson 1 ‒ Numbers

Slides:



Advertisements
Similar presentations
Candidates should be able to:
Advertisements

DATA REPRESENTATION CONVERSION.
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.
James Tam Beyond base 10: Non-decimal based number system What exactly is decimal? How do other number systems work (binary, octal and hex) How to convert.
2.2 General Positional-Number-System Conversion
Information Processing
CISCO NETWORKING ACADEMY Chabot College ELEC 74A Hexadecimal Introduction.
Number Systems and Arithmetic
 Binary Binary  Binary Number System Binary Number System  Binary to Decimal Binary to Decimal  Decimal to Binary Decimal to Binary  Octal and Hexadecimal.
+ CS 325: CS Hardware and Software Organization and Architecture Integers and Arithmetic.
Data Storage Introduction to computer, 2nd semester, 2010/2011 Mr.Nael Aburas Faculty of Information Technology Islamic.
Hexadecimal and ASCII Lesson Objective: Understand the purpose of ASCII and how to use it. Lesson Outcome: Convert between Hexadecimal and ASCII Convert.
COMT 222 Tools for a Digital World. Digital? What makes information Digital? If it helps:  When is information not analog? Answer:  A finite number.
Lecture 2 Bits, Bytes & Number systems
CCE-EDUSAT SESSION FOR COMPUTER FUNDAMENTALS Date: Session III Topic: Number Systems Faculty: Anita Kanavalli Department of CSE M S Ramaiah.
Numbering System Base Conversion. Number systems Decimal – 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 Binary – 0, 1 Octal – 0, 1, 2, 3, 4, 5, 6, 7 Hexadecimal system.
Number System. Number Systems Important Number systems – Decimal – Binary – Hexadecimal.
Positional Notation 642 in base 10 positional notation is:
Number Base Conversions
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.
Converting From decimal to Binary & Hexadecimal to Binary
1 Press Ctrl-A ©G Dear 2010 – Not to be sold/Free to use Converting Bits and Bytes Stage 6 - Year 11 Applied Mathematic (Preliminary General 1)
Hexadecimal. Overview Hexadecimal (hex) ~ base 16 number system Use 0 through 9 and... A = 10 B = 11 C = 12 D = 13 E = 14 F = 15.
Octal to Decimal Hexadecimal DecimalOctal Binary.
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.
Data Representation Hexadecimal  Although computers work in binary it is sometimes inconvenient for humans to read everything in Binary. For example in.
DECIMALBINARY a) b) c) d) e) f) Revision Exercise DECIMALBINARY a) b) c)
Binary01.ppt Decimal Decimal: Base 10 means 10 Unique numerical digits ,00010,000 Weight Positions 3,
Computer Programming 12 Mr. Jean February 11 th, 2014.
ABFC... Home page Introduction Binary number system Hexadecimal number system Binary coded decimal Objectives Octal number system Click.
1. Number Systems. Common Number Systems SystemBaseSymbols Used by humans? Used in computers? Decimal100, 1, … 9YesNo Binary20, 1NoYes Octal80, 1, … 7No.
The Hexadecimal Number System Representation of Data in Computer Systems.
Cis303a_chapt03_exam1_answer.ppt CIS303A: System Architecture Exam 1: Chapter 3 Answer List the characters (digits) for the following bases. 1) Decimal:
CSC 110 – Intro to Computing Lecture 3: Converting between bases & Arithmetic in other bases.
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.
Number Systems and Binary Arithmetic Quantitative Analysis II Professor Bob Orr.
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
Base 16 (hexadecimal) Uses the decimal digits and the first letters of the alphabet to encode 4 binary bits (16=2 4 ) abcdef or ABCDEF.
Number Systems Decimal Can you write 12,045 in expanded form? Base? Allowable digits for each place?
Computer Science 210 Computer Organization
Lecturer: Santokh Singh
Unit 2.6 Data Representation Lesson 1 ‒ Numbers
Binary, Denary, Hexadecimal Conversion Binary Addition
Octal to Decimal Decimal Octal Binary Hexadecimal.
Unit 18: Computational Thinking
Digital Electronics INTRODUCTION ANALOG VS DIGITAL NUMBER SYSTEMS.
Convert Decimal to Binary
CSE 102 Introduction to Computer Engineering
Chapter 3 Data Representation
2.0 COMPUTER SYSTEM 2.2 Number System and Representation
Number System conversions
Lesson Objectives Aims You should be able to: Convert Denary to Binary
Data Storage Introduction to computer, 2nd semester, 2010/2011
Binary Quiz UIN: ____________________
Data Representation Numbers
Number Systems and Binary Arithmetic
Principles of Computing – UFCFA Lecture-3
Hexadecimal Conversions
Binary Lesson 3 Hexadecimal
Computer Science 210 Computer Organization
Topic 3: Data Hexadecimal.
Binary Lesson 3 Hexadecimal
Binary Lesson 3 Hexadecimal
Numeral systems (radix)
Binary Lesson 4 Hexadecimal and Binary Practice
GCSE COMPUTER SCIENCE Topic 3 - Data 3.4 Hexadecimal Conversion.
Hexadecimal.
Information Representation
Presentation transcript:

Unit 2.6 Data Representation Lesson 1 ‒ Numbers

Hexadecimal Numbers Hexadecimals use the base-16 number system. This means that there are 16 possibilities: 0,1,2,3,4,5,6,7,8,9,A,B,C,D,E,F Notice that we use the values A-F to represent 10-15

Convert to base 10 Base 16 is represented by the following place values: Therefore to convert 4C from Hexadecimal into base 10: 256(162) 16(161) 1(160) 256(162) 16(161) 1(160) 4 C 4*16=64 12*1=12 64+12=76

Convert to Hexadecimal Using the inverse, we can convert from to Hexadecimal by using the following method: e.g. Convert 167 into Hexadecimal Divide the number by 16: 167/16= 10(A) 2. Record the remainder: Remainder = 7 Therefore the answer = A7

Binary to Hexadecimal Using 4 bits (a nibble) we can hold 16 possible decimal values. 0000 = 0 1111 = 15 This is useful when convert between Binary and Hexadecimal (base 16). To convert 10101011 into Hex, we can use the following steps: Split into 2 nibbles: 1010 1011 Convert each nibble into decimal: 1010 = 10(A) 1011 =11(B) Therefore 10101011 in Hex is AB

Hexadecimal to Binary To convert from Hexadecimal to Binary we can do the opposite, where we convert each digit into a nibble. To convert 3B into Hex, we can use the following steps: Split into 2 digits: 3 B Convert each digit into 4 bits (a nibble!): 3= 0011 B=1011 Therefore 3B in Binary is 00111011

Why use Hexadecimal Numbers? Hexadecimals are used by computer scientists for the following reasons: Binary produces long strings and can be difficult to work with. Hex is shorter. Hex can be easily converted to/from binary as there is 1 hex digit per nibble. Hex is less susceptible to error.