2.2 General Positional-Number-System Conversion

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:
2.1 Positional Number Systems ReturnNext Why do we discuss the number systems?  Digital systems only have two states. So digital circuits process binary.
Chapter Chapter Goals Know the different types of numbers Describe positional notation.
Chapter 02 Binary Values and Number Systems Nell Dale & John Lewis.
Number System Conversions Lecture L2.2 Section 2.3.
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
Number Systems and Arithmetic
Converting binary to decimal decimal to binary
Binary and Hexadecimal Numbers
Number Systems.
Conversion of Number System Conversion Among Bases The possibilities: Hexadecimal DecimalOctal Binary
Data Representation in Computer Systems. 2 Objectives Understand the fundamentals of numerical data representation and manipulation in digital computers.
The Wonders of Conversion. A number system is a system in which a number is represented. There are potential infinite number systems that can exist (there.
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,
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
Number System. Number Systems Important Number systems – Decimal – Binary – Hexadecimal.
CPS120: Introduction to Computer Science Computer Math: Converting to Decimal.
Positional Notation 642 in base 10 positional notation is:
Number Base Conversions
Octal to Decimal Hexadecimal DecimalOctal Binary.
Positional Number Systems Decimal, Binary, Octal and Hexadecimal Numbers Wakerly Section
Chapter 2 Number Systems Consists of a set of symbols called digits and a set of relations such as +, -, x, /.
Introduction To Number Systems Binary System M. AL-Towaileb1.
Computer Number System
1. Number Systems Chapt. 2 Location in course textbook.
ITEC 1011 Introduction to Information Technologies 1. Number Systems Chapt. 2 Location in course textbook.
Chapter 1 Number Systems Digital Electronics. Topics discussed in last lecture Digital systems Advantages of using digital signals over analog. Disadvantages.
1. Number Systems. Common Number Systems SystemBaseSymbols Used by humans? Used in computers? Decimal100, 1, … 9YesNo Binary20, 1NoYes Octal80, 1, … 7No.
Number Systems. Topics  The Decimal Number System  The Binary Number System  Converting from Binary to Decimal  Converting from Decimal to Binary.
ECE 2110: Introduction to Digital Systems Number Systems: conversions.
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.
ECE 2110: Introduction to Digital Systems Number Systems: conversions.
Fall’ 2014 Number System CSE Number System How Computers Represent Data Binary Numbers The Binary Number System Bits and Bytes Text Codes Binary.
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.
Dr. Clincy Slide 1 CS Chapter 2 (Part 1 of 3) Dr. Clincy Professor of CS Ch 2 Appendix pages will not be on the exam – already covered this.
CPE 201 Digital Design Lecture 2: Digital Systems & Binary Numbers (2)
Introduction To Number Systems
Positional Number Systems Decimal, Binary, Octal and Hexadecimal Numbers Wakerly Section
Chapter 02 Nell Dale & John Lewis.
Octal to Decimal Decimal Octal Binary Hexadecimal.
Discrete Mathematics Numbering System.
1. Number Systems.
NUMBER SYSTEM Prepared by: Engr Zakria.
Dr. Clincy Professor of CS
Number Systems.
Convert Decimal to Binary
Writer:-Rashedul Hasan. Editor:- Jasim Uddin
Base ‘b’ number for i = 0 to n – 1 for an n digit quantity
CSE 102 Introduction to Computer Engineering
Location in course textbook
Number System conversions
Number Systems and Binary Arithmetic
MMNSS COLLEGE,KOTTIYAM DEPARTMENT OF PHYSICS
Dr. Clincy Professor of CS
Unit 2.6 Data Representation Lesson 1 ‒ Numbers
Digital Electronics and Microprocessors
Digital Logic Design (CSNB163)
Number Systems created by: S.Shahrukh haider
Number Systems Rayat Shikshan Sanstha’s
Numeral systems (radix)
Chapter 2 Number Systems.
Number Systems Rayat Shikshan Sanstha’s
Chapter 2 Number Systems.
COE 202: Digital Logic Design Number Systems Part 2
1. Number Systems Chapt. 2.
Dr. Clincy Professor of CS
Presentation transcript:

2.2 General Positional-Number-System Conversion Binary, octal or hexadecimal to decimal Examples Return Next

2.2 General Positional-Number-System Conversion Decimal to binary, octal or hexadecimal When D is a integer Return Back Next

2.2 General Positional-Number-System Conversion Divide D by r the remainder will be c0. Furthermore, the quotient Q has the same form as the oriental D. Therefore, successive divisions by 2 yield successive digits ci of D from right to left, until all the digits of d have been derived. Return Back Next

2.2 General Positional-Number-System Conversion Examples 252=12 remainder 1 c0 2=6 remainder 0 c1 2=3 remainder 0 c2 2=1 remainder 1 c3 2=0 remainder 1 c4 2510=110012 Return Back Next

2.2 General Positional-Number-System Conversion Simply 8 22 (3 179 2 89 (1 179 (LSB) 8 2 (6 8 (2 2 44 (1 2 22 (0 2 11 (0 17910=2638 2 5 (1 2 (1 16 11 (3 179 1 2 (0 16 (B 2 (1 (MSB) 17910=B316 17910=101100112 Return Back Next

2.2 General Positional-Number-System Conversion When D is a fraction Multiply D by r. Return Back Next

2.2 General Positional-Number-System Conversion The integer will be c-1. Furthermore, the fraction of the product P has the same form as the oriental D. Therefore, successive multiply by r yield successive digits c-i of D from left to right, until the error is satisfying. . Examples 0.625 2=0.25+1 integer 1 c-1 2=0.5+0 integer 0 c-2 2=0.0+1 integer 1 c-3 0.62510=0.1012 Return Back Next

2.2 General Positional-Number-System Conversion Converting with six significant digits. 0.7262 0.7268 1) 0.4522 5) 0.8088 0) 0.9042 6) 0.4648 1) 0.8082 3) 0.7128 1) 0.6162 5) 0.6968 1) 0.2322 5) 0.5688 0) 0.464 4) 0.544 0.72610  0.1011102 0.72610  0.5635548 Return Back Next

2.2 General Positional-Number-System Conversion Binary to octal or hexadecimal Examples 1000110011102 = 100 011 001 1102 = 43168 1000110011102 = 1000 1100 11102 = 8CE16 10.10110012 = 010.101 100 1002 = 2.5448 10.10110012 = 0010.1011 00102= 2.B216 Octal or hexadecimal to binary Examples 5.678= 101.110 111 3.A516= 11.1010 0101 Return Back Next

2.2 General Positional-Number-System Conversion bit, byte, word, and nibble bit –– one binary digit is called bit. byte –– 8 binary digits is called byte. word –– n-bit word means one word has n binary digits. nibble –– 4-bit or half-byte is called nibble. Example A hexadecimal number is 5678ABCD16 . How many binary digits has it? How many 8-bit bytes has it? What is the hexadecimal value of every 8-bit byte? How many 2-byte words has it? How many 32-bit words has it? Return Back Next

2.2 General Positional-Number-System Conversion Answer 5678ABCD16 =0101 0110 0111 1000 1010 1011 1100 11012 It has 32 binary digits. It has four 8-bit bytes. The hexadecimal values of four 8-bit bytes are 5616, 7816, AB16, CD16. It has two 2-byte words. It has one 32-bit word. A file’s size is 20bytes. How many 1-bit memory units need for saving this file? If a file’s size is 1kbytes? Return Back