Chapter 1 1 Number Systems. 2 Objectives  Understand why computers use binary (Base-2) numbering.  Understand how to convert Base-2 numbers to Base-

Slides:



Advertisements
Similar presentations
DATA REPRESENTATION CONVERSION.
Advertisements

Number Systems. 2 The total number of allowable symbols in a number system is called the radix or base of the system. Decimal Numbers: radix = 10 (symbols:
CS 151 Digital Systems Design Lecture 2 Number Systems Prof. Ahmed Sameh Room 239A.
Chapter Chapter Goals Know the different types of numbers Describe positional notation.
Chapter 02 Binary Values and Number Systems Nell Dale & John Lewis.
1 Number Systems. 2 Numbers Each number system is associated with a base or radix – The decimal number system is said to be of base or radix 10 A number.
Converting Binary to Octal
Computer Systems 1 Fundamentals of Computing
© Copyright 2000 Indiana University Board of Trustees Proficiency Quiz Study Guide Note: The following slides are provided courtesy of Dr. Bob Orr (Computer.
COE 202: Digital Logic Design Number Systems Part 1
NUMBER SYSTEM AND CONVERSION Digital Circuit Choopan Rattanapoka.
Revision Introductory Lesson
Binary and Hexadecimal Numbers
Number Systems.
EKT 121 / 4 ELEKTRONIK DIGIT 1 CHAPTER 1 : INTRODUCTION.
Numbering Systems CS208.
1 Number SystemsLecture 8. 2 BINARY (BASE 2) numbers.
Conversion of Number System Conversion Among Bases The possibilities: Hexadecimal DecimalOctal Binary
1 DLD Lecture 18 Recap. 2 Recap °Number System/Inter-conversion, Complements °Boolean Algebra °More Logic Functions: NAND, NOR, XOR °Minimization with.
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,
Number Systems Ron Christensen CIS 121.
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
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.
Digital Logic Lecture 2 Number Systems
Chapter1: Number Systems
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.
Digital Electronics Octal & Hexadecimal Number Systems.
Octal to Decimal Hexadecimal DecimalOctal Binary.
Visualizing Decimal and Binary
Binary01.ppt Decimal Decimal: Base 10 means 10 Unique numerical digits ,00010,000 Weight Positions 3,
WEEK #2 NUMBER SYSTEMS, OPERATION & CODES (PART 1)
Aim: How to write in Scientific Notation DO NOW: 1. WHAT DOES 10 5 MEAN? 2. WHAT IS THE VALUE OF USING YOUR CALCULATOR, CALCULATE 4.5 X 10 6.
Octal & Hexadecimal Number Systems
Computer Number System
Number Systems. Topics  The Decimal Number System  The Binary Number System  Converting from Binary to Decimal  Converting from Decimal to Binary.
 2012 Pearson Education, Inc. Slide Chapter 4 NumerationSystems.
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.
Chapter 01 Numbers. Chapter 02 Base 10 example Decimal Number Place Place (place - 1) ===============================
Chapter 5 NUMBER REPRESENTATION AND ARITHMETIC CIRCUITS.
Chapter 4 Numeration and Mathematical Systems © 2008 Pearson Addison-Wesley. All rights reserved.
Number systems Visualizing Decimal and Binary. We count in base 10 because people started by counting on their fingers Base 10 is a number system that.
Binary Values. Numbers Natural Numbers Zero and any number obtained by repeatedly adding one to it. Examples: 100, 0, 45645, 32 Negative Numbers.
Programmable Logic Controller
Digital Design Chapter One Digital Systems and Binary Numbers
Octal to Decimal Decimal Octal Binary Hexadecimal.
Discrete Mathematics Numbering System.
Number Systems and Binary Arithmetic
CHAPTER 1 : INTRODUCTION
Number Systems.
Location in course textbook
Tools of Web Development 1: Module A: Numbering Systems
Number System conversions
Fundamentals & Ethics of Information Systems IS 201
Chapter 1 Number Systems & Conversions
Number Systems and Binary Arithmetic
Introduction to IT By: Muhammed s. anwar.
Digital Electronics and Microprocessors
Chapter 2: Number Systems
Chapter Four Data Representation in Computers By Bezawit E.
Chapter 2 Number Systems.
Chapter 2 Number Systems.
Chapter 2 Number Systems.
Chapter 2 Number Systems.
1. Number Systems Chapt. 2.
Presentation transcript:

Chapter 1 1 Number Systems

2 Objectives  Understand why computers use binary (Base-2) numbering.  Understand how to convert Base-2 numbers to Base- 10 or Base-8.  Understand how to convert Base-8 numbers to Base- 10 or Base 2.  Understand how to convert Base-16 numbers to Base- 10, Base 2 or Base-8.

3 Why Binary System? Computers are made of a series of switches Each switch has two states: ON or OFF Each state can be represented by a number – 1 for “ON” and 0 for “OFF”

4 Converting Base-2 to Base-10(101 1) 2 0ON OFF ON ON/OFF OFF ON Exponent: Calculation: = (19) 10

5 Number systems include decimal, binary, octal and hexadecimal Each system have four number base Number SystemBaseSymbol BinaryBase 2 B OctalBase 8 O DecimalBase 10 D HexadecimalBase 16 H

6 1.1 Decimal Number System The Decimal Number System uses base 10. It includes the digits {0, 1,2,…, 9}. The weighted values for each position are: 10^410^310^210^110^010^-110^-210^ Base Right of decimal point left of the decimal point

7 Each digit appearing to the left of the decimal point represents a value between zero and nine times power of ten represented by its position in the number. Digits appearing to the right of the decimal point represent a value between zero and nine times an increasing negative power of ten. Example: the value is represented in expansion form as follows: 7 * 10^2 + 2 * 10^1 + 5 * 10^0 + 1 * 10^ * 10^ * 10^-3 =7 * * * * * * = =

8 1.2 The Binary Number Base Systems Most modern computer system using binary logic. The computer represents values(0,1) using two voltage levels (usually 0V for logic 0 and either +3.3 V or +5V for logic 1). The Binary Number System uses base 2 includes only the digits 0 and 1 The weighted values for each position are : 2^52^42^32^22^12^02^-12^ Base

9 1.3 Number Base Conversion Binary to Decimal: multiply each digit by its weighted position, and add each of the weighted values together or use expansion formdirectly. Example the binary value represents : 1*2^7 + 1*2^6 + 0*2^5 + 0*2^4 + 1*2^3 + 0*2^2 + 1*2^1 + 0*2^0 = 1 * * * * * * * * 1 = =202

10 Decimal to Binary There are two methods, that may be used to convert from integer number in decimal form to binaryform: 1- Repeated Division By 2 For this method, divide the decimal number by 2, If the remainder is 0, on the right side write down a 0. If the remainder is 1, write down a 1. When performing the division, the remainders which will represent the binary equivalent of the decimal number are written beginning at the least significant digit (right) and each new digit is written to more significant digit (the left) of the previous digit.

11 Example: convert the number 333 to binary. DivisionQuotientRemainderBinary 333/ / / / / / / / /

12 Octal System Computer scientists are often looking for shortcuts to do things One of the ways in which we can represent binary numbers is to use their octal equivalents instead This is especially helpful when we have to do fairly complicated tasks using numbers

13 The octal numbering system includes eight base digits (0-7) After 7, the next placeholder to the right begins with a “1” 0, 1, 2, 3, 4, 5, 6, 7, 10, 11, 12, 13...

14 Octal Placeholders “ ” “Ones ” “” “Eights” “ “Sixty- Fours” 64*28*41*1 8 2 *28 1 *4 8 0 *1 241 : Number: Placeholder Name: Value: Exponential Expression:

15 Transform (44978) 10 to Octal. DivisionQuotientRemainderBinary / / / / / /