Introduction To Number Systems

Slides:



Advertisements
Similar presentations
DATA REPRESENTATION CONVERSION.
Advertisements

Chapter Chapter Goals Know the different types of numbers Describe positional notation.
Chapter 02 Binary Values and Number Systems Nell Dale & John Lewis.
Fractions Chapter Two McGraw-Hill/Irwin
The Binary Number System
Converting Binary to Octal
Number Systems and Arithmetic
© Copyright 2000 Indiana University Board of Trustees Proficiency Quiz Study Guide Note: The following slides are provided courtesy of Dr. Bob Orr (Computer.
Binary Numbers.
Data Representation in Computers. Data Representation in Computers/Session 3 / 2 of 33 Number systems  The additive approach – Number earlier consisted.
Converting binary to decimal decimal to binary
© 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.
Binary and Hexadecimal Numbers
EKT 121 / 4 ELEKTRONIK DIGIT 1 CHAPTER 1 : INTRODUCTION.
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
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.
Positional Notation 642 in base 10 positional notation is:
Number Base Conversions
Computer Math CPS120 Introduction to Computer Science Lecture 4.
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)
Chapter 2 Number Systems Consists of a set of symbols called digits and a set of relations such as +, -, x, /.
Digital Fundamentals Tenth Edition Floyd Chapter 2 © 2008 Pearson Education.
B121 Chapter 5 Working with Numbers. Number representation ThousandHundredsTensUnits Natural numbers: 1,2,3,4,5……… Integers: Natural numbers.
School of Computer and Communication Engineering, UniMAP Mohd ridzuan mohd nor DKT 122/3 - DIGITAL SYSTEM I Chapter.
Introduction To Number Systems Binary System M. AL-Towaileb1.
© 2009 Pearson Education, Upper Saddle River, NJ All Rights ReservedFloyd, Digital Fundamentals, 10 th ed Digital Logic Design Dr. Oliver Faust.
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.
ECE 2110: Introduction to Digital Systems Number Systems: conversions.
© 2009 Pearson Education, Upper Saddle River, NJ All Rights ReservedFloyd, Digital Fundamentals, 10 th ed Digital Fundamentals Tenth Edition Floyd.
Chapter 4 Numeration and Mathematical Systems © 2008 Pearson Addison-Wesley. All rights reserved.
Number Systems. The position of each digit in a weighted number system is assigned a weight based on the base or radix of the system. The radix of decimal.
ECE 2110: Introduction to Digital Systems Number Systems: conversions.
Binary Values. Numbers Natural Numbers Zero and any number obtained by repeatedly adding one to it. Examples: 100, 0, 45645, 32 Negative Numbers.
Introduction to signals The signals are broadly classified into two categories: 1. Analog Signals. 2. Digital signals.
Prepared By: Norakmar Binti Mohd Nadzari CHAPTER 2 ARITHMETIC AND LOGIC UNIT.
Number Systems & Binary Arithmetic
Digital Logic & Design Adil Waheed Lecture 02.
Digital Design Chapter One Digital Systems and Binary Numbers
Number Systems and Binary Arithmetic
Digital Logic & Design Dr. Waseem Ikram Lecture 02.
CHAPTER 1 : INTRODUCTION
COMPUTING FUNDAMENTALS
Writer:-Rashedul Hasan. Editor:- Jasim Uddin
Tools of Web Development 1: Module A: Numbering Systems
Number System conversions
Number Systems.
IT 0213: INTRODUCTION TO COMPUTER ARCHITECTURE
Number Systems and Binary Arithmetic
Introduction to IT By: Muhammed s. anwar.
MMNSS COLLEGE,KOTTIYAM DEPARTMENT OF PHYSICS
Numbering System TODAY AND TOMORROW 11th Edition
Digital Logic & Design Lecture 02.
Digital Logic Design (ECEg3141) 2. Number systems, operations & codes 1.
Digital Electronics and Microprocessors
Chapter 2: Number Systems
BASIC MATH.
§4.3, Computation in Positional Systems
Chapter 2 Number Systems.
Binary to Decimal Conversion
Chapter 2 Number Systems.
Chapter 2 Number Systems.
Introduction To Number Systems
COE 202: Digital Logic Design Number Systems Part 2
Chapter 2 Number Systems.
Presentation transcript:

Introduction To Number Systems Octal System L Al-zaid Math1101

Octal System The octal, or base 8, number system is a common system used with computers. Because of its relationship with the binary system, it is useful in programming some types of computers. Octal is fancy for Base Eight meaning eight symbols are used to represent all the quantities. They are 0, 1, 2, 3, 4, 5, 6, and 7. L Al-zaid Math1101

Octal to decimal conversion An octal number can be converted to decimal by forming the sum of powers of 8 of the coefficients. Example1 Convert 7648 to decimal: Solution 764 = 7x82+ 6x81+4x80 = 448+48+4 = 50010 Example 658= 6x8 +5=5310 Example 2 Convert 0.2358 to decimal: Solution: 0.2358=2x8-1 + 3x8-2 + 5x8-3 = 2x0.125 + 3x8-2 + 5x8-3 = 0.30664 L Al-zaid Math1101

Decimal to octal conversion To convert a decimal fraction to octal, multiply by 8; the integer part of the result is the first digit of the octal fraction. Repeat the process with the fractional part of the result, until it is null or within acceptable error bounds. L Al-zaid Math1101

Conversion of decimal fraction to octal fraction Example3: Convert 0.1640625 to octal: 0.1640625x8= 1.3125 =0.3125 + 1 0.3125 x8= 2.5=0.5+ 2 0.5x8 = 4= 4 Therefore, 0.164062510 = 0.1248. Example4: convert (0.523)10 to octal equivalent up to 3 decimal places. Solution 0.523 x 8 = 4.184, its integer part is 4 0.184 x 8 = 1.472, its integer part is 1 0.472 x 8 = 3.776, its integer part is 3 So the answer is (0.413..)8 L Al-zaid Math1101

Conversion of decimal to octal ( base 10 to base 8) To convert from a base-10 integer numeral to its base-2 (binary) equivalent, the number is divided by two, and the remainder is the least-significant bit. The (integer) result is again divided by two, its remainder is the next least significant bit. This process repeats until the quotient becomes zero. Example5: convert (177)10 to octal equivalent 177 / 8 = 22 remainder is 1 22 / 8 = 2 remainder is 6 2 / 8 = 0 remainder is 2 Answer = 261 Note: the answer is read from bottom to top as (261)8, the same as with the binary case. L Al-zaid Math1101

Octal to binary conversion To convert octal to binary, replace each octal digit by its binary representation in 3 bits, so add zeros to the left if necessary. Example 6: Convert 518 to binary: Solution 58= 101 18=001 Therefore, 518 = 101 0012. L Al-zaid Math1101

Binary to Octal conversion In order to convert the Binary number into its equivalent octal numbers, split the given binary number into groups and each group should contain three binary bits (because 23=8), add zeros to the left if necessary, and then converting each group into its equivalent octal number. Example 7: convert binary 1010111100 to octal. Solution: 10101111002 = 12748. Convert binary 11100.01001 to octal: 11100.010012 = 34.228. L Al-zaid Math1101

Arithmetic in octal system L Al-zaid Math1101

Octal Addition Addition of the octal number is carried out in the same way as the decimal addition is performed. The steps are given below: 1. First, add the two digits of the unit column of the octal number in decimal. 2. This process is repeated for each larger significant digit of the octal number. 3. During the process of addition, if the sum is less than or equal to 7, then it can be directly written as an octal digit. 4. If the sum is greater than 7, then subtract 8 from the digit and carry 1 to the next digit position. 5. Note that in this addition the largest octal digit is 7. L Al-zaid Math1101

Example 8: Evaluate: (162)8 + (537)8 Solution: L Al-zaid Math1101

(ii) (136) 8 + (636) 8 Solution: L Al-zaid Math1101

(iii) (25.27)8 + (13.2)8 Solution: L Al-zaid Math1101

(iv) (67.5)8 + (45.6)8 Solution: L Al-zaid Math1101

Subtraction of Octal Numbers The subtraction of octal numbers follows the same rules as the subtraction of numbers in any other number system. The only variation is in the quantity of the borrow. In the decimal system, you had to borrow a group of 1010. In the binary system, you borrowed a group of 210. In the octal system you will borrow a group of 810. L Al-zaid Math1101

Example 9 Subtract 5328-1748 Solution: Steps: 1 Example 9 Subtract 5328-1748 Solution: Steps: 1. Since 2<4 then borrow 1 from 3 and add 8 to 2. 2. 2+8=10 in decimal so 10-4=6. 3. In the second column we have 2 after borrowing but 2<7, so we need to borrow 1 from 5 and add 8 to 2. 4. 2+8 = 10, 10-7=3 5. We have 4 after borrowing so we have 4-1=3. L Al-zaid Math1101

Homework All Exercises Page 18 L Al-zaid Math1101