UNIT1: COMPUTERNUMBER SYSTEM
|
|
- Denis Blake
- 5 years ago
- Views:
Transcription
1 UNIT1: COMPUTERNUMBER SYSTEM Binary,Decimal, Octal and Hexadecimal Number-Base Conversions Addition, Subtraction and Multiplication of Computer Number System Compliment (1 s, 2's and r s complement) Signed Binary Number Binary Arithmetic Page 1 of 35
2 COMPUTER NUMBER SYSTEM 1.1Binary,Decimal, Octal and Hexadecimal 1. Introduction of Computer Number System: We used the man in the long history of different numerical systems and our system we call the decimal system. Numerical system 1. Binary (0,1) 2 2. Decimal (0,to 91) Octal(0 to 7) 8 4. Hexadecimal(0 to 9 ABCDEF) 2 النظام الثناي ي : System Binary This means that the code contains only the digits 0 and 1 and uses this code to convert any data to write the number 1 and 0. النظام العشري Decimal System The decimal system, if the basis of (10) and the following figures by category (0,1,2,3,4,5,6,7,8,9) النظام الثماني Octal System Octal number system is a counting system with a basis of the number 8, and uses the numbers from 0 to 7. سداسي عشريSystem Hexadecimal A Hexadecimal Number is based on the number 16 As well as the familiar digits 0 to 9, there are also the letters "A","B","C","D","E" and "F" in place of the decimal numbers 10 to 15. Page 2 of 35
3 1.2Number-Base Conversions Q1. Convert Binary to Decimal Number Systems? ( ) 2 = ( ) 10 Ans: x 16 8 x = 87 ( ) 2 = (87) 10 Q2. Convert Decimal to Binary Number System (274) 10 = ( ) 2 Ans: x 64 x 32 x 16 8 x 4 x 2 1 x = 274 (274) 10 = ( ) 2 Q3. Convert Binary to Octal Number Systems? ( ) 2 = ( ) 8 Ans: Add leading zeros ( ) 2 = (146) 8 Page 3 of 35
4 Q4 Convert Octal to Binary Number Systems? (6132) 8 = ( ) 2 Ans: إجابة 6 = = = = 010 ( ) 2 (6132) 8 = ( ) 2 Q5. Convert Binary to Hexadecimal number systems? ( ) 2 =(------) 16 Ans: ( ) 2 =(56) 16 Q6 Convert Hexadecimal to Binary number systems? (39F) 16 = ( ) 2. Ans: 3 = = 1001 F = 1111 (39F) 16 = ( ) 2 Page 4 of 35
5 Page 5 of 35
6 ثناي یالحسابArithmetic 2. Binary Binary arithmetic is essential part of all the digital computers and many other digital system. الثناي یةزاي د 2.1 Binary Addition It is a key for binary subtraction, multiplication, division. There four rules of the binary addition. In fourth case, a binary addition is creating a sum of (1+1=10) i.e. 0 is write in the given column and a carry of 1 over to the next column. EXAMPLE - ADDITION ناقص الثناي یةSubtraction 2.2Binary Subtraction and Borrow, these two words will be used very frequently for the binary subtraction.there four rules of the binary substration.there four rules of the binary Subtraction. Page 6 of 35
7 EXAMPLE - SUBTRACTION الثناي یةضربMultiplication 2.3 Binary Binary multiplication is similar to decimal multiplication. It is simpler than decimal multiplication because only 0s and 1s are involved.there four rules of the binary multiplication. EXAMPLE - MULTIPLICATION Page 7 of 35
8 2.4 Binary Division Binary division is similar to decimal division. It is called as the long division procedure. EXAMPLE - DIVISION 3. Octal Arithmetic Octal Number System Following are the characteristics of an octal number system. Uses eight digits, 0,1,2,3,4,5,6,7. Also called base 8 number system Each position in a octal number represents a 0 power of the base (8). Example 8 0 Last position in a octal number represents a x power of the base (8). Example 8 x where x represents the last position - 1. Page 8 of 35
9 EXAMPLE Octal Number: Calculating Decimal Equivalent: Step Octal Number Decimal Number Step ((1 x 8 4 ) + (2 x 8 3 ) + (5 x 8 2 ) + (7 x 8 1 ) + (0 x 8 0 )) 10 Step ( ) 10 Step Note: is normally written as Octal Addition Page 9 of 35
10 3.2 Octal Subtraction 3.2 Octal Multiplication Page 10 of 35
11 4. Hexadecimal Arithmetic Hexadecimal Number System Following are the characteristics of a hexadecimal number system. Uses 10 digits and 6 letters, 0,1,2,3,4,5,6,7,8,9,A,B,C,D,E,F. Letters represents numbers starting from 10. A = 10. B = 11, C = 12, D = 13, E = 14, F = 15. Also called base 16 number system Each position in a hexadecimal number represents a 0 power of the base (16). Example 16 0 Last position in a hexadecimal number represents a x power of the base (16). Example 16 x where x represents the last position - 1. EXAMPLE Hexadecimal Number: 19FDE 16 Calculating Decimal Equivalent: Step Hexadecimal Number Decimal Number Step 1 19FDE 16 ((1 x 16 4 ) + (9 x 16 3 ) + (F x 16 2 ) + (D x 16 1 ) + (E x 16 0 )) 10 Step 2 19FDE 16 ((1 x 16 4 ) + (9 x 16 3 ) + (15 x 16 2 ) + (13 x 16 1 ) + (14 x 16 0 )) 10 Step 3 19FDE 16 ( ) 10 Step 4 19FDE Note: 19FDE 16 is normally written as 19FDE. Page 11 of 35
12 4.1 Hexadecimal Addition Page 12 of 35
13 4.2 Hexadecimal Subtraction and Multiplication Page 13 of 35
14 تكملالحسابArithmetic 1.3 Complement Complements are used in the digital computers in order to simplify the subtraction operation and for the logical manipulations. For each radix-r system (radix r represent base of number system) there are two types of complements S.N. Complement 1 Radix Complement Description The radix complement is referred to as the r's complement 1 Diminished Radix Complement The diminished radix complement is referred to as the (r-1)'s complement Binary system complements As the binary system has base r = 2. So the two types of complements for the binary system are 2's complement and 1's complement. 1's complement The 1's complement of a number is found by changing all 1's to 0's and all 0's to 1's. This is called as taking complement or 1's complement. Example of 1's Complement is as follows. Page 14 of 35
15 2's complement The 2's complement of binary number is obtained by adding 1 to the Least Significant Bit (LSB) of 1's complement of the number. 2's complement = 1's complement + 1 Example of 2's Complement is as follows. Page 15 of 35
16 Page 16 of 35
17 Page 17 of 35
18 Page 18 of 35
19 Page 19 of 35
20 Page 20 of 35
21 Page 21 of 35
22 R s AND (R-1) s COMPLEMENT OF NUMBER SYSTEMS In digital system complement is used to find subtraction of number base system and for digital manipulation. If R be the base of a number system then that number system can have two complements respectively R s and (R-1) s complement. The base of binary number system is 2 so there can be 2 s complement and 1 s complement of this system. Similarly in hexadecimal number system there are 15 s complement and 16 s complement. Now the general formula for find R s complement and (R-1) s are given below: R s complement of any number system = (R n ) 10 -N and (R-1) s complement of any number system = {(R n ) 10-1)}-N Where R = Radix or base of that number system n = Number of digits in the number and N = The given number R s AND (R-1) s COMPLEMENT OF BINARY NUMBER SYSTEM The base of binary number system is 2 so for binary number R=2 and R-1 = 1 thus 1 s complement for binary numbers is {(2 n ) 10-1)}-N and 2 s complement is (2 n ) 10 -N. Example: Find 1 s complement and 2 s complement of the binary number ? Solution: 1 s complement of = {(2 7 ) 10-1)} = = = s complement of = (2 7 ) 10 -N = = = Page 22 of 35
23 There is a short cut method for finding 1 s complement and 2 s complement of binary numbers. We just need to alter 0 s by 1 s and 1 s by 0 s for 1 s complement and for 2 s complement find 1 s complement from this method then add 1 to LSB(least significant bit). So the above problem can be solved as: 1 s complement of = s complement of = 1 s complement of the binary number + 1 = = R s AND (R-1) s COMPLEMENT OF BASE 3 NUMBER SYSTEM Here the base is 3 so R = 3 and R-1 = 2 thus 3 s complement of base 3 number system = (3 n ) 10 -N and 2 s complement of base 3 number system = {(3 n ) 10-1)}-N. Example: Find 3 s complement and 2 s complement of 121 3? Solution: 3 s complement and 2 s complement is found as: 2 s complement of = {(3 3 ) 10-1)} = = = s complement of = (3 n ) 10 -N = = = There is a shortcut method for finding 2 s and 3 s complement of this number base system. Subtract each digit of the given number from 2 and take them together. Thus the value obtained is the 2 s complement of the given number. And for 3 s complement just add 1 to the LSB. Example: Find 3 s complement and 2 s complement of 121 3? Solution: 2 s complement of = Page 23 of 35
24 = And 3 s complement of = 2 s complement + 1 = = R s AND (R-1) s COMPLEMENT OF BASE 4 NUMBER SYSTEM In this system base is 4 so R = 4 and R-1 = 3 thus 4 s complement in this number system is (4 n ) 10 -N and 3 s complement in this system is {(4 n ) 10-1)}-N. Example: Find the 3 s complement and 4 s complement of 130 4? Solution: 3 s complement of = {(4 3 ) 10-1)} = = = = s complement of = (4 3 ) = = = = The shortcut method for this system is as follows: first subtract each bit of number from 3 and then take them together for 3 s complement and for 4 s complement add 1 to the LSB. Example: Find the 3 s complement and 4 s complement of 130 4? Solution: 3 s complement of = = s complement of = 3 s complement of Page 24 of 35
25 = = R s AND (R-1) s COMPLEMENT OF BASE 5 NUMBER SYSTEM This number system has 4 s and 5 s complement so 4 s complement for this number system is {(5 n ) 10-1)}-N and 5 s complement is (5 n ) 10 -N. Example: Find the 4 s complement and 5 s complement of 224 5? Solution: 4 s complement of = {(5 3 ) 10-1)} = = = = s complement of = (5 3 ) = = = =221 5 The shortcut method for 4 s complement is as: we have to subtract each digit of the given number from 4. And for 5 s complement just add 1 to the 4 s complement. 4 s complement of = = s complement of = 4 s complement of = = R s AND (R-1) s COMPLEMENT OF BASE 6 NUMBER SYSTEM 6 is the base of this system so R = 6 and R-1 = 5 thus 6 s complement is equal to Page 25 of 35
26 (6 n ) 10 -N and 5 s complement is equal to {(6 n ) 10-1)}-N. Example: Find 5 s complement and 6 s complement of (530) 6? Solution: 5 s and 6 s complement of is found as: 5 s complement of = {(6 3 ) 10-1)} = = = = s complement of = (6 3 ) = = = = 26 6 By shortcut method we can solve it as we have solved the above problems of base 3, 4 or 5. In this system the starting digit is 0 and the last digit is 5 so repeat the above method. 5 s complement of = = s complement of = 5 s complement of = = 26 6 R s AND (R-1) s COMPLEMENT OF BASE 7 NUMBER SYSTEM The base 7 number system has 6 s and 7 s complement so R = 7 and R-1 = 6 thus 6 s complement is {(7 n ) 10-1)} N and 7 s complement is (7 n ) 10 N. Example: Find the 6 s complement and 7 s complement of (653) 7? Solution: 6 s complement of = {(7 3 ) 10-1)} Page 26 of 35
27 = = = = s complement of = (7 3 ) = = = = 14 7 The above problem can also be solved by a shortcut method as: subtract each digit of the given number from 6 and then take them as a whole number. For 7 s complement add one to the 6 s complement of the given number. Thus the above problem is solved as: 6 s complement of = = s complement of = 6 s complement of = = 14 7 R s AND (R-1) s COMPLEMENT OF OCTAL NUMBER SYSTEM In octal number system there is 7 s complement and 8 s complement because here R = 8 and R-1 = 7. Now 7 s complement of octal number is {(8 n ) 10-1)} N and 8 s complement of octal number is (8 n ) 10 N. Example: Find 7 s complement and 8 s complement of the octal number (172) 8? Solution: The 7 s and 8 s complement of is found as: 7 s complement of = {(8 3 ) 10-1)} = Page 27 of 35
28 = = = s complement of = (8 3 ) = = = = In short the above problem can be solved by subtracting each digit from 7 for 7 s complement and add 1 to the 7 s complement to find 8 s complement of given octal number. 7 s complement of = = s complement of = 7 s complement of = = R s AND (R-1) s COMPLEMENT OF BASE 9 NUMBER SYSTEM The base 9 number system has R = 9 and R-1 = 8 so 8 s complement and 9 s complement of base 9 number system are {(9 n ) 10-1)} N and (9 n ) 10 N respectively. Example: Find 8 s complement and 9 s complement of 807 9? Solution: 8 s complement of = {(9 3 ) 10-1)} = = = = 81 9 Page 28 of 35
29 9 s complement of = (9 3 ) = = = = 82 9 The shortcut method for this problem is shown below: 8 s complement of = = s complement of = 8 s complement of = = 82 9 R s AND (R-1) s COMPLEMENT OF DECIMAL NUMBER SYSTEM The base of decimal number system is 10 since there are 10 distinguish digits in this system starting from 0 to 9. In this system R = 10 and R-1 = 9 thus 9 s complement of decimal number is {(10 n ) 10-1)} N and 10 s complement is (10 n ) 10 N. Example: Find 9 s and 10 s complement of the decimal number ? 9 s complement = {(10 3 ) 10-1)} = = s complement = (10 3 ) = = The shortcut method for 9 s complement and 10 s complement of decimal number is shown below: 9 s complement Page 29 of 35
30 = = s complement = 9 s complement = = R s AND (R-1) s COMPLEMENT OF BASE 11 NUMBER SYSTEM In this system there are 11 digits. The last digit of this system is represented by the English alphabet A which is equivalent to 10 in decimal number system. Here R = 11 and R-1 = 10. Thus 10 s complement of this number system is {(11 n ) 10-1)} N and 11 s complement of this system is (11 n ) 10 N. Example: Find 10 s complement and 11 s complement of 1A1 11? Solution: 10 s complement and 11 s complement of 1A1 11 is found as: 10 s complement of 1A1 11 = {(11 3 ) 10-1)} 1A1 11 = A1 11 = = = s complement of 1A1 11 = (11 3 ) 10 1A1 11 = A1 11 = = = 90A 11 To find 10 s complement of 1A1 11 by shortcut method we subtract each digit of the given number from A which is equal to 10. And for 11 s complement add 1 to the value of 10 s complement of 1A1 11. So the given problem is solved as: 10 s complement of 1A1 11 = AAA 1A1 = s complement of 1A1 11 = 10 s complement of 1A Page 30 of 35
31 = = 90A 11 R s AND (R-1) s COMPLEMENT OF BASE 12 NUMBER SYSTEM Here the base of the number system is 12. In this system the last two digits are represented by A and B which are equivalent to 10 and 11. The digits are as: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, A and B. Here R = 12 and R-1 = 11 thus 11 s complement is equal to {(12 n ) 10-1)} N and 12 s complement is equal to (12 n ) 10 N. Example: Find 11 s complement and 12 s complement of AB0 12? Solution: 11 s complement and 12 s complement of AB0 12 is as follows: 11 s complement of AB0 12 = {(12 3 ) 10-1)} AB0 12 = AB0 12 = = = 10B s complement of AB0 12 = (12 3 ) 10 AB0 12 = AB0 12 = = = We can solve these problems by another method: for 11 s complement subtract each digit from B and for 12 s complement add 1 to 11 s complement of the given number. 11 s complement of AB0 12 = BBB AB0 = 10B s complement of AB0 12 = 11 s complement of AB = 10B = Page 31 of 35
32 R s AND (R-1) s COMPLEMENT OF BASE 13 NUMBER SYSTEM In this system R = 13 and R-1 = 12 so 12 s complement and 13 s complements are as follows: 12 s complement of base 13 number system = {(13 n ) 10-1)} N and 13 s complement of base 13 number system = (13 n ) 10 N. Example: Find 12 s complement and 13 s complement of ABC 13? Solution: 12 s complement of ABC 13 = {(13 3 ) 10-1)} ABC 13 = ABC 13 = = = s complement of ABC 13 = (13 3 ) 10 ABC 13 = = ABC 13 = = = By shortcut method: 12 s complement of ABC 13 = CCC ABC = s complement of ABC 13 = 12 s complement of ABC = = R s AND (R-1) s COMPLEMENT OF BASE 14 NUMBER SYSTEM For base 14 number system R = 14 and R-1 = 13 so 14 s complement of base 14 number system is (14 n ) 10 N and 13 s complement of this system is {(14 n ) 10-1)} N. Example: Find 14 s complement and 13 s complement of D15 14? Page 32 of 35
33 Solution: Here base is 14 so let s use above two formulas to find 14 s and 13 s complement of D s complement of D15 14 = (14 3 ) 10 D15 14 = D15 14 = = = C s complement of D15 14 = {(14 3 ) 10-1)} D15 14 = D15 14 = = = C8 14 Shortcut method for this problem is as follows: (D = 13) 13 s complement of D15 14 = DDD D15 = C s complement of D15 14 = 13 s complement of D = C = C9 14 R s AND (R-1) s COMPLEMENT OF BASE 15 NUMBER SYSTEM Base 15 number system has 15 s complement and 14 s complement which are as follows: 15 s complement of base 15 = (15 n ) 10 N 14 s complement of base 15 = {(15 n ) 10-1)} N Example: Find 15 complement and 14 s complement of AE0 15? Solution: The solution of the above problem using the above two formulas: Page 33 of 35
34 14 s complement of AE0 15 = {(15 3 ) 10-1)} AE0 15 = AE0 15 = = = 40E s complement of AE0 15 = (15 3 ) 10 AE0 15 = AE0 15 = = = Shortcut method: 14 s complement of AE0 15 = EEE AE0 = 40E s complement of AE0 15 = 14 s complement of AE = 40E = R s AND (R-1) s COMPLEMENT OF HEXADECIMAL NUMBER SYSTEM Hexadecimal number system has 15 s complement and 16 s complement. Here R = 16 and R-1 = 15 thus we can write: 15 s complement of hexadecimal number = {(16 n ) 10-1)} N 16 s complement of hexadecimal number = (16 n ) 10 N Example: Find 15 s complement and 16 s complement of the hexadecimal number F9 16? Page 34 of 35
35 Solution: 15 s complement of hexadecimal number F9 16 = {(16 2 ) 10-1)} F9 16 = F9 16 = = 6 10 = s complement of hexadecimal number F9 16 = (16 2 ) 10 F9 16 = F9 16 = = 7 10 = 7 16 Shortcut method: 15 s complement of hexadecimal number F9 16 = FF F9 = s complement of hexadecimal number F9 16 = 15 s complement of hexadecimal number F = = 7 16 Page 35 of 35
CHAPTER V NUMBER SYSTEMS AND ARITHMETIC
CHAPTER V-1 CHAPTER V CHAPTER V NUMBER SYSTEMS AND ARITHMETIC CHAPTER V-2 NUMBER SYSTEMS RADIX-R REPRESENTATION Decimal number expansion 73625 10 = ( 7 10 4 ) + ( 3 10 3 ) + ( 6 10 2 ) + ( 2 10 1 ) +(
More informationBINARY SYSTEM. Binary system is used in digital systems because it is:
CHAPTER 2 CHAPTER CONTENTS 2.1 Binary System 2.2 Binary Arithmetic Operation 2.3 Signed & Unsigned Numbers 2.4 Arithmetic Operations of Signed Numbers 2.5 Hexadecimal Number System 2.6 Octal Number System
More informationLecture (02) Operations on numbering systems
Lecture (02) Operations on numbering systems By: Dr. Ahmed ElShafee ١ Dr. Ahmed ElShafee, ACU : Spring 2018, CSE202 Logic Design I Complements of a number Complements are used in digital computers to simplify
More informationNumber System. Introduction. Decimal Numbers
Number System Introduction Number systems provide the basis for all operations in information processing systems. In a number system the information is divided into a group of symbols; for example, 26
More informationDigital Systems and Binary Numbers
Digital Systems and Binary Numbers Mano & Ciletti Chapter 1 By Suleyman TOSUN Ankara University Outline Digital Systems Binary Numbers Number-Base Conversions Octal and Hexadecimal Numbers Complements
More informationNumber Systems. TA: Mamun. References: Lecture notes of Introduction to Information Technologies (ITEC 1011) by Dr Scott MacKenzie
Number Systems TA: Mamun References: Lecture notes of Introduction to Information Technologies (ITEC 1011) by Dr Scott MacKenzie Common Number Systems System Base Symbols Decimal 10 0, 1, 9 Binary 2 0,
More informationMoodle WILLINGDON COLLEGE SANGLI. ELECTRONICS (B. Sc.-I) Introduction to Number System
Moodle 1 WILLINGDON COLLEGE SANGLI ELECTRONICS (B. Sc.-I) Introduction to Number System E L E C T R O N I C S Introduction to Number System and Codes Moodle developed By Dr. S. R. Kumbhar Department of
More informationDigital Fundamentals
Digital Fundamentals Tenth Edition Floyd Chapter 2 2009 Pearson Education, Upper 2008 Pearson Saddle River, Education NJ 07458. All Rights Reserved Decimal Numbers The position of each digit in a weighted
More informationCS & IT Conversions. Magnitude 10,000 1,
CS & IT Conversions There are several number systems that you will use when working with computers. These include decimal, binary, octal, and hexadecimal. Knowing how to convert between these number systems
More informationComputer Sc. & IT. Digital Logic. Computer Sciencee & Information Technology. 20 Rank under AIR 100. Postal Correspondence
GATE Postal Correspondence Computer Sc. & IT 1 Digital Logic Computer Sciencee & Information Technology (CS) 20 Rank under AIR 100 Postal Correspondence Examination Oriented Theory, Practice Set Key concepts,
More informationOctal & Hexadecimal Number Systems. Digital Electronics
Octal & Hexadecimal Number Systems Digital Electronics What, More Number Systems? Why do we need more number systems? Humans understand decimal Check out my ten digits! Digital electronics (computers)
More informationCS/EE1012 INTRODUCTION TO COMPUTER ENGINEERING SPRING 2013 HOMEWORK I. Solve all homework and exam problems as shown in class and sample solutions
CS/EE2 INTRODUCTION TO COMPUTER ENGINEERING SPRING 23 DUE : February 22, 23 HOMEWORK I READ : Related portions of the following chapters : È Chapter È Chapter 2 È Appendix E ASSIGNMENT : There are eight
More informationChapter 2 Exercises and Answers
Chapter 2 Exercises and nswers nswers are in blue. For Exercises -5, match the following numbers with their definition.. Number. Natural number C. Integer number D. Negative number E. Rational number unit
More informationin this web service Cambridge University Press
978-0-51-85748- - Switching and Finite Automata Theory, Third Edition Part 1 Preliminaries 978-0-51-85748- - Switching and Finite Automata Theory, Third Edition CHAPTER 1 Number systems and codes This
More informationChapter 2 Binary Values and Number Systems
Chapter 2 Binary Values and Number Systems Chapter Goals 10 進位 2 / 8 / 16 進位 進位系統間轉換 各進位系統小數表示 各進位系統加減法 各進位系統乘除法 2 24 6 Numbers Natural Numbers Zero and any number obtained by repeatedly adding one to
More informationIntroduction to Computer Science-103. Midterm
Introduction to Computer Science-103 Midterm 1. Convert the following hexadecimal and octal numbers to decimal without using a calculator, showing your work. (6%) a. (ABC.D) 16 2748.8125 b. (411) 8 265
More informationNumber Systems and Binary Arithmetic. Quantitative Analysis II Professor Bob Orr
Number Systems and Binary Arithmetic Quantitative Analysis II Professor Bob Orr Introduction to Numbering Systems We are all familiar with the decimal number system (Base 10). Some other number systems
More informationNumber Systems and Conversions UNIT 1 NUMBER SYSTEMS & CONVERSIONS. Number Systems (2/2) Number Systems (1/2) Iris Hui-Ru Jiang Spring 2010
Contents Number systems and conversion Binary arithmetic Representation of negative numbers Addition of two s complement numbers Addition of one s complement numbers Binary s Readings Unit.~. UNIT NUMBER
More informationMC1601 Computer Organization
MC1601 Computer Organization Unit 1 : Digital Fundamentals Lesson1 : Number Systems and Conversions (KSB) (MCA) (2009-12/ODD) (2009-10/1 A&B) Coverage - Lesson1 Shows how various data types found in digital
More informationNumber representations
Number representations Number bases Three number bases are of interest: Binary, Octal and Hexadecimal. We look briefly at conversions among them and between each of them and decimal. Binary Base-two, or
More informationDigital Fundamentals. CHAPTER 2 Number Systems, Operations, and Codes
Digital Fundamentals CHAPTER 2 Number Systems, Operations, and Codes Decimal Numbers The decimal number system has ten digits: 0, 1, 2, 3, 4, 5, 6, 7, 8, and 9 The decimal numbering system has a base of
More informationTOPICS. Other Number Systems. Other Number Systems 9/9/2017. Octal Hexadecimal Number conversion
Topic : Introduction To computers Faculty : Department of commerce and Management BY: Prof.Meeta R. Gujarathi E mail: meetargujarathi@gmail.com Octal Hexadecimal Number conversion TOPICS Other Number Systems
More informationBinary Systems and Codes
1010101010101010101010101010101010101010101010101010101010101010101010101010101010 1010101010101010101010101010101010101010101010101010101010101010101010101010101010 1010101010101010101010101010101010101010101010101010101010101010101010101010101010
More informationNumber Systems CHAPTER Positional Number Systems
CHAPTER 2 Number Systems Inside computers, information is encoded as patterns of bits because it is easy to construct electronic circuits that exhibit the two alternative states, 0 and 1. The meaning of
More informationCHW 261: Logic Design
CHW 261: Logic Design Instructors: Prof. Hala Zayed Dr. Ahmed Shalaby http://www.bu.edu.eg/staff/halazayed14 http://bu.edu.eg/staff/ahmedshalaby14# Slide 1 Slide 2 Slide 3 Digital Fundamentals CHAPTER
More informationNumeral Systems. -Numeral System -Positional systems -Decimal -Binary -Octal. Subjects:
Numeral Systems -Numeral System -Positional systems -Decimal -Binary -Octal Subjects: Introduction A numeral system (or system of numeration) is a writing system for expressing numbers, that is a mathematical
More informationElectronic Data and Instructions
Lecture 2 - The information Layer Binary Values and Number Systems, Data Representation. Know the different types of numbers Describe positional notation Convert numbers in other bases to base 10 Convert
More informationIT 1204 Section 2.0. Data Representation and Arithmetic. 2009, University of Colombo School of Computing 1
IT 1204 Section 2.0 Data Representation and Arithmetic 2009, University of Colombo School of Computing 1 What is Analog and Digital The interpretation of an analog signal would correspond to a signal whose
More informationLecture 2: Number Systems
Lecture 2: Number Systems Syed M. Mahmud, Ph.D ECE Department Wayne State University Original Source: Prof. Russell Tessier of University of Massachusetts Aby George of Wayne State University Contents
More informationCHAPTER 2 (b) : AND CODES
DKT 122 / 3 DIGITAL SYSTEMS 1 CHAPTER 2 (b) : NUMBER SYSTEMS OPERATION AND CODES m.rizal@unimap.edu.my sitizarina@unimap.edu.my DECIMAL VALUE OF SIGNED NUMBERS SIGN-MAGNITUDE: Decimal values of +ve & -ve
More informationLECTURE 1-2. Introduction and Number Systems
LECTURE 1-2 Introduction and Number Systems 1 BASIC INFORMATION Course Code: CSE 115 Course Title: Computing Concepts Course Teacher: Dr. Muhammad Asif H. Khan (Mfs), Associate Professor, Dept. of Computer
More informationNumber Systems. Dr. Tarek A. Tutunji Philadelphia University, Jordan
Number Systems Dr. Tarek A. Tutunji Philadelphia University, Jordan Number Systems Programmable controllers use binary numbers in one form or another to represent various codes and quantities. Every number
More informationMACHINE LEVEL REPRESENTATION OF DATA
MACHINE LEVEL REPRESENTATION OF DATA CHAPTER 2 1 Objectives Understand how integers and fractional numbers are represented in binary Explore the relationship between decimal number system and number systems
More informationKorea University of Technology and Education
MEC52 디지털공학 Binary Systems Jee-Hwan Ryu School of Mechanical Engineering Binary Numbers a 5 a 4 a 3 a 2 a a.a - a -2 a -3 base or radix = a n r n a n- r n-...a 2 r 2 a ra a - r - a -2 r -2...a -m r -m
More informationChapter 3: Number Systems and Codes. Textbook: Petruzella, Frank D., Programmable Logic Controllers. McGraw Hill Companies Inc.
Chapter 3: Number Systems and Codes Textbook: Petruzella, Frank D., Programmable Logic Controllers. McGraw Hill Companies Inc., 5 th edition Decimal System The radix or base of a number system determines
More informationCOE 202: Digital Logic Design Number Systems Part 2. Dr. Ahmad Almulhem ahmadsm AT kfupm Phone: Office:
COE 0: Digital Logic Design Number Systems Part Dr. Ahmad Almulhem Email: ahmadsm AT kfupm Phone: 860-7554 Office: -34 Objectives Arithmetic operations: Binary number system Other number systems Base Conversion
More informationObjectives. Connecting with Computer Science 2
Objectives Learn why numbering systems are important to understand Refresh your knowledge of powers of numbers Learn how numbering systems are used to count Understand the significance of positional value
More informationChapter 2. Positional number systems. 2.1 Signed number representations Signed magnitude
Chapter 2 Positional number systems A positional number system represents numeric values as sequences of one or more digits. Each digit in the representation is weighted according to its position in the
More informationDIGITAL SYSTEM DESIGN
DIGITAL SYSTEM DESIGN UNIT I: Introduction to Number Systems and Boolean Algebra Digital and Analog Basic Concepts, Some history of Digital Systems-Introduction to number systems, Binary numbers, Number
More informationThis tutorial gives a complete understanding on Computer Logical Organization starting from basic computer overview till its advanced architecture.
About the Tutorial Computer Logical Organization refers to the level of abstraction above the digital logic level, but below the operating system level. At this level, the major components are functional
More informationCHAPTER 2 Number Systems
CHAPTER 2 Number Systems Objectives After studying this chapter, the student should be able to: Understand the concept of number systems. Distinguish between non-positional and positional number systems.
More informationComputer Logical Organization Tutorial
Computer Logical Organization Tutorial COMPUTER LOGICAL ORGANIZATION TUTORIAL Simply Easy Learning by tutorialspoint.com tutorialspoint.com i ABOUT THE TUTORIAL Computer Logical Organization Tutorial Computer
More information2 Number Systems 2.1. Foundations of Computer Science Cengage Learning
2 Number Systems 2.1 Foundations of Computer Science Cengage Learning 2.2 Objectives After studying this chapter, the student should be able to: Understand the concept of number systems. Distinguish between
More informationCOE 202- Digital Logic. Number Systems II. Dr. Abdulaziz Y. Barnawi COE Department KFUPM. January 23, Abdulaziz Barnawi. COE 202 Logic Design
1 COE 0- Digital Logic Number Systems II Dr. Abdulaziz Y. Barnawi COE Department KFUPM COE 0 Logic Design January 3, 016 Objectives Base Conversion Decimal to other bases Binary to Octal and Hexadecimal
More informationLESSON TITLE. Language English Local Language Introduction to Computer Science. Mr. VAR Sovannrath Submission Date October 30th, 2014 Version 1.
LESSON TITLE Country Cambodia Language English Local Language Course Title Introduction to Computer Science Lesson Title 06. Number Systems SME Mr. VAR Sovannrath Submission Date October 30th, 2014 Version
More informationChapter 1 Emad Felemban
Chapter 1 Emad Felemban Digital Computers and Digital Systems Binary Numbers Number Base Conversion Octal and Hexadecimal Numbers Complements Singed Binary Numbers Binary Codes Binary Storage and Registers
More informationPositional notation Ch Conversions between Decimal and Binary. /continued. Binary to Decimal
Positional notation Ch.. /continued Conversions between Decimal and Binary Binary to Decimal - use the definition of a number in a positional number system with base - evaluate the definition formula using
More informationIntroduction to Numbering Systems
NUMBER SYSTEM Introduction to Numbering Systems We are all familiar with the decimal number system (Base 10). Some other number systems that we will work with are Binary Base 2 Octal Base 8 Hexadecimal
More informationTOPIC: NUMBER SYSTEMS
Ministry of Secondary Education Progressive Comprehensive High School PCHS Mankon Bamenda Department of Computer Studies Republic of Cameroon Peace Work - Fatherland TOPIC: NUMBER SYSTEMS Class: Comp.
More informationNumbers and Representations
Çetin Kaya Koç http://koclab.cs.ucsb.edu/teaching/cs192 koc@cs.ucsb.edu Çetin Kaya Koç http://koclab.cs.ucsb.edu Fall 2016 1 / 38 Outline Computational Thinking Representations of integers Binary and decimal
More informationCMPE223/CMSE222 Digital Logic Design. Positional representation
CMPE223/CMSE222 Digital Logic Design Number Representation and Arithmetic Circuits: Number Representation and Unsigned Addition Positional representation First consider integers Begin with positive only
More informationSE311: Design of Digital Systems
SE311: Design of Digital Systems Lecture 3: Complements and Binary arithmetic Dr. Samir Al-Amer (Term 041) SE311_Lec3 (c) 2004 AL-AMER ١ Outlines Complements Signed Numbers Representations Arithmetic Binary
More informationT02 Tutorial Slides for Week 2
T02 Tutorial Slides for Week 2 ENEL 353: Digital Circuits Fall 2017 Term Steve Norman, PhD, PEng Electrical & Computer Engineering Schulich School of Engineering University of Calgary 19 September, 2017
More informationReview of Number Systems
Review of Number Systems The study of number systems is important from the viewpoint of understanding how data are represented before they can be processed by any digital system including a digital computer.
More informationEE292: Fundamentals of ECE
EE292: Fundamentals of ECE Fall 2012 TTh 10:00-11:15 SEB 1242 Lecture 22 121115 http://www.ee.unlv.edu/~b1morris/ee292/ 2 Outline Review Binary Number Representation Binary Arithmetic Combinatorial Logic
More informationChapter 2 Number System
Chapter 2 Number System Embedded Systems with ARM Cortext-M Updated: Tuesday, January 16, 2018 What you should know.. Before coming to this class Decimal Binary Octal Hex 0 0000 00 0x0 1 0001 01 0x1 2
More informationNumber Systems Base r
King Fahd University of Petroleum & Minerals Computer Engineering Dept COE 2 Fundamentals of Computer Engineering Term 22 Dr. Ashraf S. Hasan Mahmoud Rm 22-44 Ext. 724 Email: ashraf@ccse.kfupm.edu.sa 3/7/23
More informationDigital Logic Lecture 2 Number Systems
Digital Logic Lecture 2 Number Systems By Ghada Al-Mashaqbeh The Hashemite University Computer Engineering Department Outline Introduction. Basic definitions. Number systems types. Conversion between different
More informationComputer Organization
Computer Organization Register Transfer Logic Number System Department of Computer Science Missouri University of Science & Technology hurson@mst.edu 1 Decimal Numbers: Base 10 Digits: 0, 1, 2, 3, 4, 5,
More informationLOGIC DESIGN. Dr. Mahmoud Abo_elfetouh
LOGIC DESIGN Dr. Mahmoud Abo_elfetouh Course objectives This course provides you with a basic understanding of what digital devices are, how they operate, and how they can be designed to perform useful
More informationChapter 1 Review of Number Systems
1.1 Introduction Chapter 1 Review of Number Systems Before the inception of digital computers, the only number system that was in common use is the decimal number system which has a total of 10 digits
More information1.1 Numbers system :-
1.1 Numbers system :- 1.3.1 Decimal System (0-9) :- Decimal system is a way of writing numbers. Any number, from huge quantities to tiny fractions, can be written in the decimal system using only the ten
More informationChapter 2. Data Representation in Computer Systems
Chapter 2 Data Representation in Computer Systems Chapter 2 Objectives Understand the fundamentals of numerical data representation and manipulation in digital computers. Master the skill of converting
More informationthat system. weighted value associated with it. numbers. a number. the absence of a signal. MECH 1500 Quiz 2 Review Name: Class: Date:
Name: Class: Date: MECH 1500 Quiz 2 Review True/False Indicate whether the statement is true or false. 1. The decimal system uses the number 9 as its base. 2. All digital computing devices perform operations
More informationBinary Representations and Arithmetic
Binary Representations and Arithmetic 9--26 Common number systems. Base : decimal Base 2: binary Base 6: hexadecimal (memory addresses) Base 8: octal (obsolete computer systems) Base 64 (email attachments,
More informationN.B. These pastpapers may rely on the knowledge gained from the previous chapters.
N.B. These pastpapers may rely on the knowledge gained from the previous chapters. 1 SEC 95-PAPER 1-Q5 (a) A computer uses 8-bit two s complement numbers. In the space below fill in the largest positive
More informationFundamentals of Programming Session 2
Fundamentals of Programming Session 2 Instructor: Reza Entezari-Maleki Email: entezari@ce.sharif.edu 1 Fall 2013 Sharif University of Technology Outlines Programming Language Binary numbers Addition Subtraction
More informationplc numbers Encoded values; BCD and ASCII Error detection; parity, gray code and checksums
plc numbers - 3. 3. NUMBERS AND DATA Topics: Number bases; binary, octal,, hexa Binary calculations; s compliments, addition, subtraction and Boolean operations Encoded values; BCD and ASCII Error detection;
More informationLecture 1: Digital Systems and Number Systems
Lecture 1: Digital Systems and Number Systems Matthew Shuman September 26th, 2012 The Digital Abstraction 1.3 in Text Analog Systems Analog systems are continuous. Look at the analog clock in figure 1.
More informationDigital Systems and Binary Numbers
Digital Systems and Binary Numbers Prof. Wangrok Oh Dept. of Information Communications Eng. Chungnam National University Prof. Wangrok Oh(CNU) 1 / 51 Overview 1 Course Summary 2 Binary Numbers 3 Number-Base
More informationLevel ISA3: Information Representation
Level ISA3: Information Representation 1 Information as electrical current At the lowest level, each storage unit in a computer s memory is equipped to contain either a high or low voltage signal Each
More informationLecture (01) Digital Systems and Binary Numbers By: Dr. Ahmed ElShafee
١ Lecture (01) Digital Systems and Binary Numbers By: Dr. Ahmed ElShafee Digital systems Digital systems are used in communication, business transactions, traffic control, spacecraft guidance, medical
More informationSCHOOL OF ENGINEERING & BUILT ENVIRONMENT. Mathematics. Numbers & Number Systems
SCHOOL OF ENGINEERING & BUILT ENVIRONMENT Mathematics Numbers & Number Systems Introduction Numbers and Their Properties Multiples and Factors The Division Algorithm Prime and Composite Numbers Prime Factors
More informationSwitching Circuits and Logic Design Prof. Indranil Sengupta Department of Computer Science and Engineering Indian Institute of Technology, Kharagpur
Switching Circuits and Logic Design Prof. Indranil Sengupta Department of Computer Science and Engineering Indian Institute of Technology, Kharagpur Lecture - 02 Octal and Hexadecimal Number Systems Welcome
More information1010 2?= ?= CS 64 Lecture 2 Data Representation. Decimal Numbers: Base 10. Reading: FLD Digits: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9
CS 64 Lecture 2 Data Representation Reading: FLD 1.2-1.4 Decimal Numbers: Base 10 Digits: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 Example: 3271 = (3x10 3 ) + (2x10 2 ) + (7x10 1 ) + (1x10 0 ) 1010 10?= 1010 2?= 1
More informationDecimal & Binary Representation Systems. Decimal & Binary Representation Systems
Decimal & Binary Representation Systems Decimal & binary are positional representation systems each position has a value: d*base i for example: 321 10 = 3*10 2 + 2*10 1 + 1*10 0 for example: 101000001
More informationNUMBER SYSTEMS AND CODES
C H A P T E R 69 Learning Objectives Number Systems The Decimal Number System Binary Number System Binary to Decimal Conversion Binary Fractions Double-Dadd Method Decimal to Binary Conversion Shifting
More informationCS 121 Digital Logic Design. Chapter 1. Teacher Assistant. Hadeel Al-Ateeq
CS 121 Digital Logic Design Chapter 1 Teacher Assistant Hadeel Al-Ateeq Announcement DON T forgot to SIGN your schedule OR you will not be allowed to attend next lecture. Communication Office hours (8
More informationDigital Fundamentals
Digital Fundamentals Tenth Edition Floyd Chapter 1 Modified by Yuttapong Jiraraksopakun Floyd, Digital Fundamentals, 10 th 2008 Pearson Education ENE, KMUTT ed 2009 Analog Quantities Most natural quantities
More informationData Representation and Binary Arithmetic. Lecture 2
Data Representation and Binary Arithmetic Lecture 2 Computer Data Data is stored as binary; 0 s and 1 s Because two-state ( 0 & 1 ) logic elements can be manufactured easily Bit: binary digit (smallest
More informationNumber Systems. Both numbers are positive
Number Systems Range of Numbers and Overflow When arithmetic operation such as Addition, Subtraction, Multiplication and Division are performed on numbers the results generated may exceed the range of
More informationBinary Addition. Add the binary numbers and and show the equivalent decimal addition.
Binary Addition The rules for binary addition are 0 + 0 = 0 Sum = 0, carry = 0 0 + 1 = 0 Sum = 1, carry = 0 1 + 0 = 0 Sum = 1, carry = 0 1 + 1 = 10 Sum = 0, carry = 1 When an input carry = 1 due to a previous
More informationCHAPTER TWO. Data Representation ( M.MORRIS MANO COMPUTER SYSTEM ARCHITECTURE THIRD EDITION ) IN THIS CHAPTER
1 CHAPTER TWO Data Representation ( M.MORRIS MANO COMPUTER SYSTEM ARCHITECTURE THIRD EDITION ) IN THIS CHAPTER 2-1 Data Types 2-2 Complements 2-3 Fixed-Point Representation 2-4 Floating-Point Representation
More information3.1. Unit 3. Binary Representation
3.1 Unit 3 Binary Representation ANALOG VS. DIGITAL 3.2 3.3 Analog vs. Digital The analog world is based on continuous events. Observations can take on (real) any value. The digital world is based on discrete
More informationNumber Systems & Encoding
Number Systems & Encoding Lecturer: Sri Parameswaran Author: Hui Annie Guo Modified: Sri Parameswaran Week2 1 Lecture overview Basics of computing with digital systems Binary numbers Floating point numbers
More informationUser. Application program. Interfaces. Operating system. Hardware
Operating Systems Introduction to Operating Systems and Computer Hardware Introduction and Overview The operating system is a set of system software routines that interface between an application program
More informationElectronics Engineering ECE / E & T
STUDENT COPY DIGITAL ELECTRONICS 1 SAMPLE STUDY MATERIAL Electronics Engineering ECE / E & T Postal Correspondence Course GATE, IES & PSUs Digital Electronics 2015 ENGINEERS INSTITUTE OF INDIA. All Rights
More informationMicrocomputers. Outline. Number Systems and Digital Logic Review
Microcomputers Number Systems and Digital Logic Review Lecture 1-1 Outline Number systems and formats Common number systems Base Conversion Integer representation Signed integer representation Binary coded
More informationUNIT 2 NUMBER SYSTEM AND PROGRAMMING LANGUAGES
UNIT 2 NUMBER SYSTEM AND PROGRAMMING LANGUAGES Structure 2.0 Introduction 2.1 Unit Objectives 2.2 Number Systems 2.3 Bits and Bytes 2.4 Binary Number System 2.5 Decimal Number System 2.6 Octal Number System
More informationFormatting for TLM - Part I
TLM Module A01 Formatting for TLM - Part I Copyright This publication The Northern Alberta Institute of Technology 2002. All Rights Reserved. LAST REVISED Oct., 2008 Formatting for TLM - Part I Statement
More informationThe. Binary. Number System
The Binary Number System Why is Binary important? Everything on a computer (or other digital device) is represented by Binary Numbers One to Five in various systems 1 2 3 4 5 I II III IV V 1 10 11 100
More informationMs Sandhya Rani Dash UNIT 2: NUMBER SYSTEM AND CODES. 1.1 Introduction
Ms Sandhya Rani Dash UNIT 2: NUMBER SYSTEM AND CODES Structure 2.1 Introduction 2.2 Objectives 2.3 Binary Numbers 2.3.1 Binary-to-Decimal conversion 2.3.2 Decimal-to-Binary Conversion 2.4 Octal Numbers
More informationQUIZ: Generations of computer technology. Hardware:
QUIZ: Generations of computer technology Hardware: 1. 2. 3. 4. 5. 1 QUIZ: Generations of computer technology Software: 1. 2. 3. 4. 5. 6. 2 Steampunk! 3 The Telectroscope, 1878-2008 Steampunk Wikipedia
More informationChapter 1 Preliminaries
Chapter 1 Preliminaries This chapter discusses the major classes of programming languages and the relationship among them. It also discusses the binary and the hexadecimal number systems which are used
More informationArithmetic Operations
Arithmetic Operations Arithmetic Operations addition subtraction multiplication division Each of these operations on the integer representations: unsigned two's complement 1 Addition One bit of binary
More informationDecimal/Binary Conversion on the Soroban
Decimal/Binary Conversion on the Soroban Conversion of a whole number from decimal to binary This method uses successive divisions by two, in place, utilizing a simple right-to-left algorithm. The division
More informationUnit 3. Analog vs. Digital. Analog vs. Digital ANALOG VS. DIGITAL. Binary Representation
3.1 3.2 Unit 3 Binary Representation ANALOG VS. DIGITAL 3.3 3.4 Analog vs. Digital The analog world is based on continuous events. Observations can take on (real) any value. The digital world is based
More informationNumbering systems. Dr Abu Arqoub
Numbering systems The decimal numbering system is widely used, because the people Accustomed (معتاد) to use the hand fingers in their counting. But with the development of the computer science another
More informationChapter 3: part 3 Binary Subtraction
Chapter 3: part 3 Binary Subtraction Iterative combinational circuits Binary adders Half and full adders Ripple carry and carry lookahead adders Binary subtraction Binary adder-subtractors Signed binary
More informationFundamentals of Programming
Fundamentals of Programming Lecture 2 Number Systems & Arithmetic Lecturer : Ebrahim Jahandar Some Parts borrowed from slides by IETC1011-Yourk University Common Number Systems System Base Symbols Used
More information