Computer Number Systems. d n-1 d n-2 d n-3 --- d 2-m d 1-m d -m Conventional Radix Number r is the radixd i is a digit d i Є {0, 1, ….., r – 1 } -m ≤

Slides:



Advertisements
Similar presentations
ECE 331 – Digital System Design
Advertisements

Appendix 1 Number Systems Objectives: Review of number systems and radix conversion methods Review of binary, octal, hexadecimal and BCD unsigned codes.
Radix Conversion Given a value X represented in source system with radix  s, represent the same number in a destination system with radix  d Consider.
Chapter 1 Digital Systems and Numbers System
CS 151 Digital Systems Design Lecture 3 More Number Systems.
MOHD. YAMANI IDRIS/ NOORZAILY MOHAMED NOOR 1 Lecture 3 Number System.
ECE 331 – Digital System Design
ECE 301 – Digital Electronics Number Systems and Conversion, Binary Arithmetic, and Representation of Negative Numbers (Lecture #10) The slides included.
ENGIN112 L3: More Number Systems September 8, 2003 ENGIN 112 Intro to Electrical and Computer Engineering Lecture 3 More Number Systems.
S. Barua – CPSC 240 CHAPTER 2 BITS, DATA TYPES, & OPERATIONS Topics to be covered are Number systems.
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.
Introduction to Number Systems
Number Systems and Arithmetic
COE 202: Digital Logic Design Number Systems Part 1
BASICS OF COMPUTER APPLICATIONS ASB 102. UNIT 1 Introducing computer system  Number system  What is number system?  Types of number system  Their.
Number Systems Lecture 02.
NEGATIVE BINARY NUMBER – Digital Circuit 1 Choopan Rattanapoka.
Binary Representation and Computer Arithmetic
Revision Introductory Lesson
Computer Systems 1 Fundamentals of Computing Negative Binary.
Number Systems.
ACOE1611 Data Representation and Numbering Systems Dr. Costas Kyriacou and Dr. Konstantinos Tatas.
#1 Lec # 2 Winter EECC341 - Shaaban Positional Number Systems A number system consists of an order set of symbols (digits) with relations.
Complement Numbers. Outline  Negative Numbers Representation  Sign-and-magnitude  1s Complement  2s Complement  Comparison of Sign-and-Magnitude.
Logic Design Dr. Yosry A. Azzam. Binary systems Chapter 1.
1 Digital Design: Number Systems Credits : Slides adapted from: J.F. Wakerly, Digital Design, 4/e, Prentice Hall, 2006 C.H. Roth, Fundamentals of Logic.
Tanenbaum, Structured Computer Organization, Fifth Edition, (c) 2006 Pearson Education, Inc. All rights reserved Binary Numbers Appendix.
Representation of Data Ma King Man. Reference Text Book: Volume 2 Notes: Chapter 19.
مدار منطقي مظفر بگ محمدي Course Structure & Grading Homework: 25% Midterm: 30% Final:50% There is 5% extra! ( =105!) Textbook:
NUMBER SYSTEM.
Lecture 4 Last Lecture –Positional Numbering Systems –Converting Between Bases Today’s Topics –Signed Integer Representation Signed magnitude One’s complement.
Engineering 1040: Mechanisms & Electric Circuits Spring 2014 Number Systems.
ECE 331 – Digital System Design
Dr. Ahmed Telba EE208: Logic Design Lecture# 1 Introduction & Number Systems.
Introduction to Computing Dr. Nadeem A Khan. Lecture 10.
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.
Number Systems Binary to Decimal Octal to Decimal Hexadecimal to Decimal Binary to Octal Binary to Hexadecimal Two’s Complement.
Chapter 1  Number Systems Decimal System Binary System Octal System Hexadecimal System  Binary weighted cods Signed number binary order  1’s and 2’s.
AEEE2031 Data Representation and Numbering Systems.
UniMAP Sem2-10/11 DKT121: Fundamental of Computer Programming1 Number Systems and Bitwise Operation.
WEEK #2 NUMBER SYSTEMS, OPERATION & CODES (PART 1)
ELEN 033 Lecture #5 Tokunbo Ogunfunmi Santa Clara University.
NUMBER SYSTEM. Number System Number Base B => B symbols – Base 16(Hexa):0, 1,……9, A,…, E, F – Base 10 (Decimal): 0, 1, 2,……, 7, 8, 9 – Base 8(Octal):
IT1004: Data Representation and Organization Negative number representation.
Chapter 1 Number Systems Digital Electronics. Topics discussed in last lecture Digital systems Advantages of using digital signals over analog. Disadvantages.
NUMBER SYSTEMS AND CODES. CS Digital LogicNumber Systems and Codes2 Outline Number systems –Number notations –Arithmetic –Base conversions –Signed.
CPEN Digital Logic Design Binary Systems Spring 2004 C. Gerousis © Digital Design 3 rd Ed., Mano Prentice Hall.
In decimal we are quite familiar with placing a “-” sign in front of a number to denote that it is negative The same is true for binary numbers a computer.
Number Representation 1 Lecture 2. Outcomes By the end of the session you should: – Understand what bits/bytes/words are. – Understanding conversion between.
Lecture 1.2 (Chapter 1) Prepared by Dr. Lamiaa Elshenawy
1 Digital Logic Design (41-135) Chapter 5 Number Representation & Arithmetic Circuits Younglok Kim Dept. of Electrical Engineering Sogang University Spring.
Positional Number Systems Decimal, Binary, Octal and Hexadecimal Numbers Wakerly Section
Introduction to Computing
CHAPTER 1 : INTRODUCTION
Number Systems.
CSE 102 Introduction to Computer Engineering
Number Systems and Bitwise Operation
Overview Introduction Data representation Fixed Point Representation
TAO1221 COMPUTER ARCHITECTURE AND ORGANIZATION LAB 6
Data Representation in Computer Systems
Digital Logic Design (ECEg3141) 2. Number systems, operations & codes 1.
Digital Logic Design (CSNB163)
Chapter 2 Number Systems.
Number Systems Rayat Shikshan Sanstha’s
Chapter 2 Number Systems.
Number Systems Rayat Shikshan Sanstha’s
Chapter 2 Number Systems.
Number Systems By: Asst Lec. Besma Nazar Nadhem
Chapter 2 Number Systems.
Presentation transcript:

Computer Number Systems

d n-1 d n-2 d n d 2-m d 1-m d -m Conventional Radix Number r is the radixd i is a digit d i Є {0, 1, ….., r – 1 } -m ≤ i < n

d n-1 d n-2 d n d 2 d 1 d 0 Conventional Radix Number (Integer Part) r is the radixd i is a digit d i Є {0, 1, ….., r – 1 } 0 ≤ i < n

.d -1 d -2 d d m d 1-m d -m Conventional Radix Number (Fraction Part) r is the radixd i is a digit d i Є {0, 1, ….., r – 1 } 0 ≤ i < n

N = d n-1 w n-1 + d n-2 w n d 1-m w -m The Conventional Number System is a Positional Weighted System N = ∑ d i. w i

Most Significant Digit & Least Significant Digit MSD corresponds to digit with maximum weight LSD corresponds to digit with minimum weight

d n-1 d n-2 d n d 2-m d 1-m d -m MSD Most Significant Digit LSD Least Significant Digit b n-1 b n-2 b n b 2-m b 1-m b -m MSB Most Significant Bit LSB Least Significant Bit For all Number Systems For the Binary Number System

N = d n-1 w n-1 + d n-2 w n d -m w -m The Conventional Number System is a Positional Weighted System N = ∑ d i. w i

In a Fixed-Radix Number System w i = r i N = ∑ d i. w i => N = ∑ d i. r i N = ∑ d i. r i

Examples (7051) 10 = 7 x x x x 10 0 = = 7051 (.27) 10 = 2 x x = =.27 (34.903) 10 = 3 x x x x x = = Decimal Number System : Radix 10 d i = {0, 1, 2, 3, 5, 6, 7, 8, 9}

Examples (7051) 8 = 7 x x x x 8 0 = (.27) 8 = 2 x x 8 -2 = (34.903) 8 = 3 x x x x x 8 -3 = Octal Number System : Radix 8 d i = {0, 1, 2, 3, 5, 6, 7}

Examples (72A) 16 = 7 x x x 16 0 = (.CF1) 16 = 12 x x x = (3B.2D) 16 = 3 x x x x = Hexadecimal Number System : Radix 16 d i = {0, 1, 2, 3, 4, 5, 6, 7, 8, 9, A, B, C, D, E, F}

Examples (101) 2 = 1 x x x 2 0 = = 5 (.0101) 2 = 0 x x x x 2 -4 = = (10.101) 2 = 1 x x x x x 2 -3 = = 2.75 Binary Number System : Radix 2 d i = {0, 1}

Base Conversion Integer Part

Base Conversion Fraction Part

Base Conversion Both Integer and Fraction Part

Representation of Signed Numbers Integer Part

(a n ) a n-1 a n-2 a n a 2 a 1 a 0 Sign of a n-Digit Signed Number The (n+1) th digit a n is the sign digit 0 if A ≥ 0 r- 1 if A < 0 a n =

Magnitude of a n-Digit Signed Number There are 3 different ways to represent the magnitude Sign Magnitude Form (SMF) Diminished Radix Complement Form (DRC) Radix Complement Form (RC) DRC is also known as (r-1)’s complement RC is also known as r’s complement

SMF (0) a n-1 a n a 2 a 1 a 0 DRC (0) a n-1 a n a 2 a 1 a 0 RC (0) a n-1 a n a 2 a 1 a 0 If A is a positive number [ A ≥ 0 ]

SMF (r-1) a n-1 a n a 2 a 1 a 0 DRC (r-1) ā n-1 ā n ā 2 ā 1 ā 0 RC (r-1) ā n-1 ā n ā 2 ā 1 ā where,ā i = (r-1) - a i r = radix If A is a negative number [ A < 0 ]

ā n-1 ā n ā 2 ā 1 ā 0 a n-1 a n a 2 a 1 a 0 (r-1) n-1 (r-1) n (r-1) 2 (r-1) 1 (r-1) 0 The ā i notation is implicative of –

Addition

Subtraction