Topic 14.1 Extended Hexadecimal  Decimal is base 10 and uses 10 digits (0,1,2,3,4,5,6,7,8,9).  Binary is base 2 and uses 2 digits (0,1).  Computers.

Slides:



Advertisements
Similar presentations
Number Systems and Codes
Advertisements

Base Conversion COP Practice Problem  Print a String in reverse order:  For example, if we want to print “HELLO” backwards,  we first print:
1 3 Computing System Fundamentals 3.5 Data Representation.
DATA REPRESENTATION CONVERSION.
J. Michael Moore Computer Organization CSCE 110. J. Michael Moore High Level View Of A Computer ProcessorInputOutput Memory Storage.
Chapter Chapter Goals Know the different types of numbers Describe positional notation.
Chapter 02 Binary Values and Number Systems Nell Dale & John Lewis.
Binary Mathematics. Counting system There are three kinds of people in the world: those who can count, and those who can not. - Unknown Wisdom Today’s.
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)
COMP201 Computer Systems Number Representation. Number Representation Introduction Number Systems Integer Representations Examples  Englander Chapter.
+ CS 325: CS Hardware and Software Organization and Architecture Integers and Arithmetic.
Numbering Systems Decimal (Denary) base 10. Clumsy when dealing with computers. Other systems –Binary –Octal –Hexadecimal Convenient when dealing with.
Data Storage Introduction to computer, 2nd semester, 2010/2011 Mr.Nael Aburas Faculty of Information Technology Islamic.
© 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.
Real Numbers and the Decimal Number System
Number Systems.
Lecture for Week Spring.  Numbers can be represented in many ways. We are familiar with the decimal system since it is most widely used in everyday.
Numeration Systems Introduction to Binary, Octal, and Hexadecimal.
DECIMAL BASE Based on power of 10 In the number 2,468 – from right to left -- the 8 represents the ones, the 6 represents the tens, the 4 represents the.
Copyright 2005 Curt Hill Binary, Octal and Hexadecimal The number bases used in computers.
The Wonders of Conversion. A number system is a system in which a number is represented. There are potential infinite number systems that can exist (there.
Chapter 2 Binary Values and Number Systems. 2 2 Natural Numbers Zero and any number obtained by repeatedly adding one to it. Examples: 100, 0, 45645,
CCE-EDUSAT SESSION FOR COMPUTER FUNDAMENTALS Date: Session III Topic: Number Systems Faculty: Anita Kanavalli Department of CSE M S Ramaiah.
Number systems, Operations, and Codes
CMSC 104, Lecture 051 Binary / Hex Binary and Hex The number systems of Computer Science.
Positional Notation 642 in base 10 positional notation is:
Converting From decimal to Binary & Hexadecimal to Binary
EET 250 Number systems. Introduction to Number Systems While we live in a world where the decimal number is predominant in our lives, computers and digital.
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,
Candidates should be able to:
Octal & Hexadecimal Number Systems
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.
Cis303a_chapt03_exam1_answer.ppt CIS303A: System Architecture Exam 1: Chapter 3 Answer List the characters (digits) for the following bases. 1) Decimal:
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.
Chapter 32 Binary Number System. Objectives After completing this chapter, you will be able to: –Describe the binary number system –Identify the place.
Binary Values. Numbers Natural Numbers Zero and any number obtained by repeatedly adding one to it. Examples: 100, 0, 45645, 32 Negative Numbers.
Dr. Clincy Slide 1 CS Chapter 2 (Part 1 of 3) Dr. Clincy Professor of CS Ch 2 Appendix pages will not be on the exam – already covered this.
Chapter 02 Nell Dale & John Lewis.
Discrete Mathematics Numbering System.
Integer Real Numbers Character Boolean Memory Address CPU Data Types
Dr. Clincy Professor of CS
Octal & Hexadecimal Number Systems
Octal & Hexadecimal Number Systems
2.0 COMPUTER SYSTEM 2.2 Number System and Representation
Octal & Hexadecimal Number Systems
Data Storage Introduction to computer, 2nd semester, 2010/2011
Dr. Clincy Professor of CS
Unit 2.6 Data Representation Lesson 1 ‒ Numbers
Hexadecimal Conversions
Binary Lesson 3 Hexadecimal
Binary Lesson 8a IPv6 Addresses: Hexadecimal
Binary Lesson 3 Hexadecimal
Binary Lesson 3 Hexadecimal
Computer Organization
Binary Lesson 8 IPv6 Addresses: Hexadecimal
Binary Lesson 3 Hexadecimal
Binary Lesson 4 Hexadecimal and Binary Practice
Chapter 2 Number Systems.
Binary Lesson 4 Hexadecimal and Binary Practice
GCSE COMPUTER SCIENCE Topic 3 - Data 3.4 Hexadecimal Conversion.
Hexadecimal.
Computer Science 1 Review and finish Number base conversion
Number systems Converting numbers between binary, octal, decimal, hexadecimal (the easy way)
Chapter 2 Number Systems.
Presentation transcript:

Topic 14.1 Extended Hexadecimal  Decimal is base 10 and uses 10 digits (0,1,2,3,4,5,6,7,8,9).  Binary is base 2 and uses 2 digits (0,1).  Computers also use octal (base 8 with the digits 0,1,2,3,4,5,6,7). IB doesn’t require you to know about octal.  A more common numbering system in use by computers is the hexadecimal or base 16 numbering system. As computers grew in storage capacity, the bigger system became necessary.  Since a base 16 numbering system needs more than the ten digits we are familiar with, we have to make up new characters for the additional six digits. Here is the whole set of digits (in order) for the hexadecimal numbering system: (0,1,2,3,4,5,6,7,8,9,A,B,C,D,E,F). Binary/decimal/hexadecimal conversions FYI: IB expects you to convert between decimal and binary, and hexadecimal and binary. The next page will explain how conversions from (hex) to (bin) work, and it is really quite easy.

Topic 14.1 Extended Hexadecimal  We start by counting in binary to the decimal 15. Since we always start at zero, this will make 16 rows: Binary/decimal/hexadecimal conversions DecimalBinary  Note that we need four bits to represent all the decimals from 0 to 15.  Each group of four bits represents a single hexadecimal digit. A third column is added using the hexadecimal digits: Hexadecimal A B C D E F  The shaded region represents the hexadecimal/binary conversion table. FYI: IB expects you to be able to make this conversion table from scratch. Be sure you understand how to do it!

Topic 14.1 Extended Hexadecimal  Here are some examples for the conversion from hexadecimal to binary: Binary/decimal/hexadecimal conversions DecimalBinary  The number D(hex) = 1101(bin) Hexadecimal A B C D E F  The number 2(hex) = 0010(bin)  The number 2D(hex) = (bin) FYI: Be sure to always write hex to binary conversions as 4-bit strings (bunches). FYI: To convert hex to decimal, simply convert to binary, and then use the process you’ve already learned:  2D(hex) = (bin) = = 45(dec)  2D(hex) = 45(dec)

Topic 14.1 Extended Hexadecimal  Here are some examples for the conversion from binary to hexadecimal: Binary/decimal/hexadecimal conversions DecimalBinary Hexadecimal A B C D E F  The number 0011(bin) = 3(hex)  The number 11(bin) = 3(hex) too. FYI: If your binary number doesn’t divide into groups of four, ADD LEADING ZEROS TO MAKE GROUPS OF FOUR.  The number (bin) doesn’t break down into groups of four, unless we add two leading zeros:  (bin)= (bin) = 23(hex)  Convert (bin) into hex: (bin) = (bin) = 1 E D 6 3(hex) Question: How many bits is contained in the number F129C0D(hex)? Answer: Each hex digit is four bits (binary digits) so that the total number of bits is 4  7 = 28 bits. Question: Many computers have “32-bit addresses” for memory location. How many hexadecimal digits are needed for addressing? Answer: 32 / 4 = 8. Thus when you see an error message, you oftentimes also see a 32-bit location where the error appeared, in hexadecimal form: “Error occurred at FF0234C9,” for example. Question: A byte is 8 bits. How many bytes are needed for addressing? Answer: 32 / 8 = 4. You need 4 bytes for each address.