CCE-EDUSAT SESSION FOR COMPUTER FUNDAMENTALS Date: 25.08.2007 Session III Topic: Number Systems Faculty: Anita Kanavalli Department of CSE M S Ramaiah.

Slides:



Advertisements
Similar presentations
Representing Numbers: Integers
Advertisements

DATA REPRESENTATION CONVERSION.
2.2 General Positional-Number-System Conversion
Digital Fundamentals Floyd Chapter 2 Tenth Edition
Level ISA3: Information Representation
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.
Data Representation in Computers
ENGIN112 L2: Number Systems September 5, 2003 ENGIN 112 Intro to Electrical and Computer Engineering Lecture 2 Number Systems Russell Tessier KEB 309 G.
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
Number Systems and Arithmetic
Number Systems and Codes In PLC
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-
CCE-EDUSAT SESSION FOR COMPUTER FUNDAMENTALS Date: Session III Topic: Number Systems Faculty: Anita Kanavalli Department of CSE M S Ramaiah.
Numbering Systems Decimal (Denary) base 10. Clumsy when dealing with computers. Other systems –Binary –Octal –Hexadecimal Convenient when dealing with.
Hexadecimal Dk Izzati Pg Haji Ahmad.
Number Systems.
© 2009 Pearson Education, Upper Saddle River, NJ All Rights ReservedFloyd, Digital Fundamentals, 10 th ed Digital Fundamentals Tenth Edition Floyd.
Chapter 1 Basic Principles of Digital Systems. 2 Analog vs. Digital Analog: –A way of representing a physical quantity by a proportional continuous voltage.
Numbering systems.
Numeral Systems Subjects: Numeral System Positional systems Decimal
1 Number SystemsLecture 8. 2 BINARY (BASE 2) numbers.
Chapter 3 Data Representation
EX_01.1/46 Numeric Systems. EX_01.2/46 Overview Numeric systems – general, Binary numbers, Octal numbers, Hexadecimal system, Data units, ASCII code,
EE2174: Digital Logic and Lab Professor Shiyan Hu Department of Electrical and Computer Engineering Michigan Technological University CHAPTER 2 Number.
Information Representation. Digital Hardware Systems Digital Systems Digital vs. Analog Waveforms Analog: values vary over a broad range continuously.
Number systems: binary, decimal, hexadecimal and octal. Conversion between various number systems Number systems: binary, decimal, hexadecimal and octal.
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.
Lecture 2 Bits, Bytes & Number systems
Number Systems Ron Christensen CIS 121.
Number systems, Operations, and Codes
Number Representation. Representing numbers n Numbers are represented as successive powers of a base, or radix.
Data Representation, Number Systems and Base Conversions
Digital Fundamentals Tenth Edition Floyd Chapter 2 © 2008 Pearson Education.
Chapter 1 Number Systems Digital Electronics. Topics discussed in last lecture Digital systems Advantages of using digital signals over analog. Disadvantages.
Dale Roberts Department of Computer and Information Science, School of Science, IUPUI CSCI 230 Information Representation: Positive Integers Dale Roberts,
ABFC... Home page Introduction Binary number system Hexadecimal number system Binary coded decimal Objectives Octal number system Click.
Number Systems. Topics  The Decimal Number System  The Binary Number System  Converting from Binary to Decimal  Converting from Decimal to Binary.
ECE DIGITAL LOGIC LECTURE 2: DIGITAL COMPUTER AND NUMBER SYSTEMS Assistant Prof. Fareena Saqib Florida Institute of Technology Fall 2016, 01/14/2016.
CS151 Introduction to Digital Design Chapter 1: Digital Systems and Information Lecture 2 1Created by: Ms.Amany AlSaleh.
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. ASCII – American Standard Code for Information Interchange – Standard encoding scheme used to represent characters in binary format on.
CHAPTER 3 BINARY NUMBER SYSTEM. Computers are electronic machines which operate using binary logic. These devices use two different values to represent.
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.
1. Binary, Decimal, Hexadecimal and Octal. 2. Conversion between various number systems. Number Systems:
CUIT105: Logic Design and Switching Circuits
Number Systems and Binary Arithmetic
CHAPTER 1 : INTRODUCTION
Number Systems.
COMPUTING FUNDAMENTALS
Number Systems Lab session 1 Xuan Guo.
Chapter 3 Data Representation
Number System conversions
Fundamentals & Ethics of Information Systems IS 201
IT 0213: INTRODUCTION TO COMPUTER ARCHITECTURE
Number Systems and Binary Arithmetic
MMNSS COLLEGE,KOTTIYAM DEPARTMENT OF PHYSICS
Numbering System TODAY AND TOMORROW 11th Edition
Chapter Four Data Representation in Computers By Bezawit E.
Number Systems Rayat Shikshan Sanstha’s
Numeral systems (radix)
Number Systems Rayat Shikshan Sanstha’s
Information Representation
UNIT – 3 & 4. Data Representation and Internal
CHAPTER 69 NUMBER SYSTEMS AND CODES
Presentation transcript:

CCE-EDUSAT SESSION FOR COMPUTER FUNDAMENTALS Date: Session III Topic: Number Systems Faculty: Anita Kanavalli Department of CSE M S Ramaiah Institute of Technology Bangalore E mail-

TOPICS Decimal Number Systems Binary number Systems Octal Hexadecimal Number conversion

Decimal Number System The word decimal is a derivative of decem, which is the Latin word for ten. Numbers today are almost universally written in a form of notation known as positional number representation. A number is represented as a string of digits.

Decimal Number Systems In a decimal number there are ten such digits that may be used, ranging in value from zero to nine Decimal numbers are positional numbers that have a base or radix of ten. Why ten ?

Decimal Number Systems Exactly ten distinct numerals in order to represent all possible values for each position in the number, and hence to enable us to represent all possible integer numbers in decimal notation. 0, 1, 2, 3, 4, 5, 6, 7, 8, and 9 values For example, a number like " " has ten positions and each position can contain the digits 0-9.

Decimal Number Systems Each digit position has a weight associated with it. Each digit corresponds to a power of 10 based on its position in the number Number’s value = a weighted sum of the digits

Decimal Number Systems Number’s value = a weighted sum of the digits Number’ value = digit * 10 x + digit * 10 x where x = (position number - 1). It sounds complicated ?

Decimal Number Systems The powers of 10 increment from 0, 1, 2, etc. as you move right to left HundredsTensUnits

Decimal Number Systems The BASE is 10 or Dec or simply D BASE = Power or Exponent Base = = = =1

Decimal Number Systems Example = 1x x x x10 0 = =

Decimal Number Systems Example 9876 D = 9x x x x10 0 = = 9876 D

Decimal Number Systems Summary In the decimal system, there are 10 digits (0 through 9) which combine to form numbers as follows:

Binary Number Systems The term computer numbering formats refers to the schemes implemented in digital computer and calculator hardware and software to represent numbersdigital computer calculator numbers Digital Computers and Calculator use a binary systems Why binary?

Binary Number Systems Easy to represent binary values electrically Voltages and currents. Can be implemented using circuits Create the building blocks of modern computers

Binary Number Systems Reliability With only 2 values, can be widely separated, therefore clearly differentiated Binary numbers are made of binary digits

Binary Number Systems Binary DigiTs (BITs) can be represented electronically: … 0 (no signal) … 1 (signal)

Binary Number Systems Base is 2 or ‘b’ or ‘B’ or ‘Bin’ Two symbols: 0 and 1 Each place is weighted by the power of 2

Binary Number Systems All the information in the digital computer is represented as bit patterns What is a bit pattern? This is called as the bit pattern This is one bit

Binary Number Systems Look at this bit pattern How many bits are present ? Count the number of ones and the zeros in the above pattern Answer = Total 8 bits

Binary Number Systems This pattern is represented as follows in the digital computer Bit7Bit 6Bit 5Bit 4Bit 3Bit 2Bit 1Bit

Binary Number Systems A single bit can represent two states:0 1states Therefore, if you take two bits, you can use them to represent four unique states: 00, 01, 10, & 11 And, if you have three bits, then you can use them to represent eight unique states: 000, 001, 010, 011, 100, 101, 110, & 111

Binary Number Systems With every bit you add, you double the number of states you can represent. Therefore, the expression for the number of states with n bits is 2 n. Most computers operate on information in groups of 8 bits,information

Binary Number Systems Bit7Bit 6Bit 5Bit 4Bit 3Bit 2Bit 1Bit There are 8 bits in the above table Group of 4 bits = 1 Nibble Group of 8 bits = 1 Byte Group of 16 bits = 1 Word 2 Bytes = 1 Word

Binary Number Systems Bit7Bit 6Bit 5Bit 4Bit 3Bit 2Bit 1Bit There are 8 bits in the above table Bit 0 is called the Least Significant Bit LSB Bit 1 is called the Most Significant Bit MSB

Binary Number Systems Bit7Bit 6Bit 5Bit 4Bit 3Bit 2Bit 1Bit Bit positions and their values

Convert Decimal to Binary For Each Digit Position 1.Divide decimal number by the base (e.g. 2) 2. The remainder is the lowest-order digit 3. Repeat first two steps until no divisor remains.

Convert Decimal to Binary Example: Convert Decimal 13 (13 10 ) to Binary : Repeated division by 2 (till quotient is zero) Divide-by -2QuotientRemainderBinary Bits 13/2 6 / 2 3 / 2 1 / Bit 0 = 1 Bit 1 = 0 Bit 3 = 1 Bit 4 = 1 Answer =

Convert Binary to Decimal Example: Convert Multiply each 1 bit by the appropriate power of 2 and add them together Bit 1 Bit 2Bit 3 Bit 0

Convert Binary to Decimal Example: Convert Bit7Bit 6Bit 5Bit 4Bit 3Bit 2Bit 1Bit Multiply with these values 8 x x x 0 + 1x 1 = = 13

Binary Number Systems Example: or 1011 B = 1 x x x x 2 0 = = 11 10

Binary Number Systems Example : or B 1 x x x x x 2 0 = = 22 10

Other Number Systems Octal and hex are a convenient way to represent binary numbers, as used by computers. Computer mechanics often need to write out binary quantities, but in practice writing out a binary number such as

Other Number Systems is tedious, and prone to errors. Therefore, binary quantities are written in a base-8 ("octal") or, much more commonly, a base-16 ("hexadecimal" or "hex") number format.

Octal Number Systems Base = 8 or ‘o’ or ‘Oct’ 8 symbols: { 0, 1, 2, 3, 4, 5, 6, 7} Example 123, 567, 7654 etc 987 This is incorrect why? How to represent a Decimal Number using a Octal Number System ?

Octal Number Systems Repeated Division by 8 Example = ( ) 8 ? Divide-by -8QuotientRemainderOctal digit 213 / 8 26 / 8 3 / Lower digit = 5 Second digit =2 Third digit =3 Answer = 325 8

Octal Number Systems How to convert back to Decimal ? Use this table and multiply the digits with the position values Digit 8 Digit 7 Digit 6 Digit 5 Digit 4 Digit 3 Digit 2 Digit ……

Octal Number Systems How to convert back to Decimal ? Consider the above number (8) 3 x x x 8 0 = 3 x x x 1 = = 213 Digit 1 Digit 2 Digit 3

Octal Number Systems Example Convert Consider the above number (8) 6 x x x 8 0 = 6 x x x 1 = = 393 Digit 1 Digit 2 Digit 3

Octal Number Systems Convert 393 to octal Divide-by -8QuotientRemainderOctal digit 393 / 8 49 / 8 6 / Lower digit = 1 Second digit =1 Third digit =6 Answer = 611 8

Hexadecimal Number Systems Base = 16 or ‘H’ or ‘Hex’ 16 symbols: { 0, 1, 2, 3, 4, 5, 6, 7,8,9 } { 10=A, 11=B, 12=C, 13=D, 14=E, 15= F}

Hexadecimal Number Systems {0,1,2,3,4,5,6,7,8,9,A,B,C,D,E,F} It uses 6 Letters ! Example AB12, 876F, FFFF etc How to represent a Decimal Number using a Hexadecimal Number System ?

Hex Number Systems Repeated Division by 16 Example = ( ) 16 ? Divide-by -16QuotientRemainderHex digit 213 / / Lower digit = 5 Second digit =D Answer = D5 16

Hex Number Systems How to convert D5 16 back to Decimal ? Use this table and multiply the digits with the position values Digit 8 Digit 7 Digit 6 Digit 5 Digit 4 Digit 3 Digit 2 Digit …… …..……

Hex Number Systems How to convert D5 16 back to Decimal ? Consider the above number D 5 (16) D x x 16 0 = 13 x x 1 = = 213 Digit 1 Digit 2

End