Chapter 01 Numbers. Chapter 02 Base 10 example Decimal Number 9 7 0 1 Place 4 3 2 1 Place - 1 3 2 1 0 10 (place - 1) 10 3 10 2 10 1 10 0 ===============================

Slides:



Advertisements
Similar presentations
NUMBER SYSTEM. How to convert hexadecimal numbers to decimal numbers? 230 Working from right to left, MULTIPLY each position with 8 raised to the power.
Advertisements

DATA REPRESENTATION CONVERSION.
CIS 020 Assembly Programming Chapter 02 - Numbering Systems & Data Representation © John Urrutia 2012, All Rights Reserved.5/27/20121.
CS 151 Digital Systems Design Lecture 2 Number Systems Prof. Ahmed Sameh Room 239A.
ENGIN112 L2: Number Systems September 5, 2003 ENGIN 112 Intro to Electrical and Computer Engineering Lecture 2 Number Systems Russell Tessier KEB 309 G.
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.
Converting Binary to Octal
Number Systems and Arithmetic
Binary Numbers.
Chapter 1 1 Number Systems. 2 Objectives  Understand why computers use binary (Base-2) numbering.  Understand how to convert Base-2 numbers to Base-
Number systems Converting numbers between binary, octal, decimal, hexadecimal (the easy way)
Data Representation in Computers. Data Representation in Computers/Session 3 / 2 of 33 Number systems  The additive approach – Number earlier consisted.
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.
Decimal Review ,00010,0001, Decimal ~ Base 10 number system 10 different numbers: 0, 1, 2, 3, 4, 5, 6, 7, 8,
Real Numbers and the Decimal Number System
Binary and Hexadecimal Numbers
Number Systems.
Numbering systems.
Numbering Systems CS208.
Chapter 3 Data Representation
Supplemental Chapter Number Bases
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,
1 Week 2: Binary, Octal and Hexadecimal Numbers READING: Chapter 2.
Number systems, Operations, and Codes
Chapter1: Number Systems
CMSC 104, Lecture 051 Binary / Hex Binary and Hex The number systems of Computer Science.
NUMBER SYSTEMS Binary Base 2 Octal Base 8 DecimalBase 10 HexadecimalBase 16.
1 IT 231, CMPE 331 Digital Logic Design Week 2 Number systems and arithmetic.
Number Base Conversions
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.
Programming Logic Controllers Number Systems and Codes - Chapter 3.
AEEE2031 Data Representation and Numbering Systems.
Binary01.ppt Decimal Decimal: Base 10 means 10 Unique numerical digits ,00010,000 Weight Positions 3,
WEEK #2 NUMBER SYSTEMS, OPERATION & CODES (PART 1)
© 2010 Pearson Prentice Hall. All rights reserved. CHAPTER 4 Number Representation and Calculation.
Arithmetic Chapter 4 Subject: Digital System Year: 2009.
Number Systems. Topics  The Decimal Number System  The Binary Number System  Converting from Binary to Decimal  Converting from Decimal to Binary.
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.
CMSC 1041 Binary / Hex Binary and Hex The number systems of Computer Science.
© 2009 Pearson Education, Upper Saddle River, NJ All Rights ReservedFloyd, Digital Fundamentals, 10 th ed Digital Fundamentals Tenth Edition Floyd.
Prepared By: Norakmar Binti Mohd Nadzari CHAPTER 2 ARITHMETIC AND LOGIC UNIT.
CPE 201 Digital Design Lecture 2: Digital Systems & Binary Numbers (2)
Lecturer: Santokh Singh
Chapter 1: Arithmetic & Prealgebra
Chapter 2 Binary Number Systems.
Digital Design Chapter One Digital Systems and Binary Numbers
Lecture 3: Binary values and number systems
COMPUTING FUNDAMENTALS
ITE102 – Computer Programming (C++)
Chapter 3 Data Representation
Tools of Web Development 1: Module A: Numbering Systems
Number System conversions
Data Storage Introduction to computer, 2nd semester, 2010/2011
Introduction to IT By: Muhammed s. anwar.
Number Systems Base 2, 10, 16.
Numbering System TODAY AND TOMORROW 11th Edition
Digital Electronics and Microprocessors
Chapter Four Data Representation in Computers By Bezawit E.
Chapter 2 Number Systems.
Binary Addition (1 of 2) Two 1-bit values A B A + B 1
Chapter 2 Number Systems.
Chapter 2 Number Systems.
Binary, Hexadecimal, and Base 10.
Number systems Converting numbers between binary, octal, decimal, hexadecimal (the easy way)
Chapter 2 Number Systems.
Dr. Clincy Professor of CS
Presentation transcript:

Chapter 01 Numbers

Chapter 02 Base 10 example Decimal Number Place Place (place - 1) =============================== = 9* * *10 + 1*1 = 9701

Chapter 03 Numeric Values –The numeric value (expressed in base 10) of a set of digits is determined as: The sum of the products of each digit and its corresponding place value, where the place value is the numeric-base raised to the place - 1.

Chapter 04 Base 2 example Binary Number (place - 1) =============================== = 0*8 + 1*4 + 0*2 + 1*1 = 5

Chapter 05 A general example Base n Number n (place - 1) n 3 n 2 n 1 n 0 =============================== 0*( n * n * n ) + 1*( n * n ) + 0* n + 1*1

Chapter 06 Commonly Used Systems Binary Base 2 OctalBase 8 DecimalBase 10 HexadecimalBase 16

Chapter 07 Legal Digits What are the legal digits? Starts at zero and stops at the base - 1 Binary 0, 1 Octal 0, 1, 2, 3, 4, 5, 6, 7 Decimal 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 Hex 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, A, B, C, D, E, F

Chapter 08 What is the decimal value of? base base base base 16

Chapter 09 Binary Octal Decimal Hex A B C D E F Counting in Binary, Octal, Decimal and Hexadecimal When you reach the maximum digit in a column you start over with a zero and carry a 1 into the next column to the left

Chapter 010 Hex = Binary Shorthand Hexadecimals are often used as a shorthand for large binary values. This shorthand is useful for specifying memory locations, e.g. Decimal - 16,274,482 Binary Hex - F85432

Chapter 011 Binary to Hex Each Hexadecimal digit represents four binary digits F

Chapter 012 Binary to Octal Each Octal digit represents three binary digits

Converting a decimal number to a base 2 number 1.Determine the power of two that is just smaller than the number that you want to convert. 2.You will need 1 of this power. 3.Subtract the value of this power of two from the number that you are converting. 4.Use the reminder and repeat the process starting at step 1 until the remainder is zero. 5.Put zeros in whenever you “skip” a power of 2. Chapter 013

Convert 235 decimal to binary Powers of 2 = 256, 128, 64, 32, 16, 8, 4, 2, 1 –You will need 1 of the 128s –You now know that this will need 8 binary digits. –Your partial answer is 1??????? –The 1 in the 8 th column represents 128 items –235 – 128 = 107 You have 107 items left to represent Chapter 014

Convert 235 decimal to binary Powers of 2 = 256, 128, 64, 32, 16, 8, 4, 2, 1 –You have 107 items left to represent –You will need 1 of the 64s –Your partial answer is 11?????? –The 1 in the 7 th column represents 64 items –235 – 128 – 64 = 43 –You have 43 items left to represent Chapter 015

Convert 235 decimal to binary Powers of 2 = 256, 128, 64, 32, 16, 8, 4, 2, 1 –You have 43 items left to represent –You will need 1 of the 32s –Your partial answer is 111????? –The 1 in the 6 th column represents 32 items –235 – 128 – = 11 –You have 11 items left to represent Chapter 016

Convert 235 decimal to binary Powers of 2 = 256, 128, 64, 32, 16, 8, 4, 2, 1 –You have 11 items left to represent –You will need 0 of the 16s –Your partial answer is 1110???? –The 0 in the 5 th column represents 0 items –235 – 128 – = 11 –You still have 11 items left to represent Chapter 017

Convert 235 decimal to binary Powers of 2 = 256, 128, 64, 32, 16, 8, 4, 2, 1 –You have 11 items left to represent –You will need 1 of the 8s –Your partial answer is 11101??? –The 1 in the 4 th column represents 8 items –235 – 128 – – 8 = 3 –You still have 3 items left to represent Chapter 018

Convert 235 decimal to binary Powers of 2 = 256, 128, 64, 32, 16, 8, 4, 2, 1 –You have 3 items left to represent –You will need 0 of the 4s –Your partial answer is ?? –The 0 in the 3 rd column represents 0 items –235 – 128 – – 8 – 0 = 3 –You still have 3 items left to represent Chapter 019

Convert 235 decimal to binary Powers of 2 = 256, 128, 64, 32, 16, 8, 4, 2, 1 –You have 3 items left to represent –You will need 1 of the 2s –Your partial answer is ? –The 1 in the 2 nd column represents 2 items –235 – 128 – – 8 – 0 – 2 = 1 –You still have 1 item left to represent Chapter 020

Convert 235 decimal to binary Powers of 2 = 256, 128, 64, 32, 16, 8, 4, 2, 1 –You have 1 item left to represent –You will need 1 of the 1s –Your final answer is –The 1 in the 1 st column represents 1 item –235 – 128 – – 8 – 0 – 2 – 1 = 0 –You 0 items left to represent, if you were not in the rightmost column you would fill in zeros for the remaining columns to the right. Chapter 021