Number Base Conversions

Slides:



Advertisements
Similar presentations
NUMBER SYSTEM. How to convert hexadecimal numbers to decimal numbers? 230 Working from right to left, MULTIPLY each position with 8 raised to the power.
Advertisements

Princess Sumaya Univ. Computer Engineering Dept. د. بســام كحـالــه Dr. Bassam Kahhaleh.
DATA REPRESENTATION CONVERSION.
Chapter 1 Digital Systems and Numbers System
2.2 General Positional-Number-System Conversion
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:
Numbers. Number Conversion Convert – Binary number to decimal numbers – Octal numbers to decimal numbers – Hexadecimal to decimal numbers Convert – Decimal.
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
 Binary Binary  Binary Number System Binary Number System  Binary to Decimal Binary to Decimal  Decimal to Binary Decimal to Binary  Octal and Hexadecimal.
Converting binary to decimal decimal to binary
Number Systems.
#1 Lec # 2 Winter EECC341 - Shaaban Positional Number Systems A number system consists of an order set of symbols (digits) with relations.
Number systems: binary, decimal, hexadecimal and octal. Conversion between various number systems Number systems: binary, decimal, hexadecimal and octal.
Conversion of Number System Conversion Among Bases The possibilities: Hexadecimal DecimalOctal Binary
Number systems & Binary codes MODULE 1 Digital Logic Design Ch1-2 Outline of Chapter 1  1.1 Digital Systems  1.2 Binary Numbers  1.3 Number-base Conversions.
IT101: INFORMATION TECHNOLOGY FUNDAMENTALS 1 Edited By Dr. Ahmed Abo-Bakr Information Technology Dept. Faculty of Computers & Information.
Number Systems Ron Christensen CIS 121.
Dr. Ahmed Telba EE208: Logic Design Lecture# 1 Introduction & Number Systems.
Number systems, Operations, and Codes
1 Dr. Mohamed Abdur Rahman Office hours Sunday: 10:00- 12:00 & Tuesday: 3:00 - 3:50 Course website: Has been created
Digital Electronics Octal & Hexadecimal Number Systems.
Octal to Decimal Hexadecimal DecimalOctal Binary.
Positional Number Systems Decimal, Binary, Octal and Hexadecimal Numbers Wakerly Section
DECIMALBINARY a) b) c) d) e) f) Revision Exercise DECIMALBINARY a) b) c)
Binary01.ppt Decimal Decimal: Base 10 means 10 Unique numerical digits ,00010,000 Weight Positions 3,
Chapter 2 Number Systems Consists of a set of symbols called digits and a set of relations such as +, -, x, /.
Chapter 1 Digital Systems and Binary Numbers
Octal & Hexadecimal Number Systems
Computer Number System
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.
Number Systems and Binary Arithmetic Quantitative Analysis II Professor Bob Orr.
Chapter 5 NUMBER REPRESENTATION AND ARITHMETIC CIRCUITS.
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.
1. Binary, Decimal, Hexadecimal and Octal. 2. Conversion between various number systems. Number Systems:
Introduction To Number Systems
Positional Number Systems Decimal, Binary, Octal and Hexadecimal Numbers Wakerly Section
Digital Design Chapter One Digital Systems and Binary Numbers
Numbering Systems.
Octal to Decimal Decimal Octal Binary Hexadecimal.
By: Jonathan O. Cabriana
Integer Real Numbers Character Boolean Memory Address CPU Data Types
CHAPTER 1 : INTRODUCTION
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
Binary Quiz UIN: ____________________
Number Systems and Binary Arithmetic
Binary, Octal and Hex Numbers Copyright Thaddeus Konar
Digital Logic Design (ECEg3141) 2. Number systems, operations & codes 1.
Digital Electronics and Microprocessors
There are 10 types of people of people in this world…
Chapter 2: Number Systems
Digital Logic Design (CSNB163)
Number Systems Rayat Shikshan Sanstha’s
Binary Addition (1 of 2) Two 1-bit values A B A + B 1
Numeral systems (radix)
Number Systems Rayat Shikshan Sanstha’s
Remember the 10 types of people of people in this world…
COE 202: Digital Logic Design Number Systems Part 2
Presentation transcript:

Number Base Conversions Evaluate Magnitude Octal (Base 8) Evaluate Magnitude Decimal (Base 10) Binary (Base 2) Hexadecimal (Base 16) Evaluate Magnitude

Decimal (Integer) to Binary Conversion Divide the number by the ‘Base’ (=2) Take the remainder (either 0 or 1) as a coefficient Take the quotient and repeat the division Example: (15)10 Quotient Remainder Coefficient 15 / 2 = 7 1 a0 = 1 7 / 2 = 3 1 a1 = 1 3 / 2 = 1 1 a2 = 1 1 / 2 = 0 1 a3 = 1 Answer: (15)10 = (a3 a2 a1 a0)2 = (1111)2 MSB LSB

Decimal (Fraction) to Binary Conversion Multiply the number by the ‘Base’ (=2) Take the integer (either 0 or 1) as a coefficient Take the resultant fraction and repeat the division Example: (0.625)10 Integer Fraction Coefficient 0.625 * 2 = 1 . 25 a-1 = 1 0.25 * 2 = 0 . 5 a-2 = 0 0.5 * 2 = 1 . 0 a-3 = 1 Answer: (0.625)10 = (0.a-1 a-2 a-3)2 = (0.101)2 MSB LSB

Decimal to Octal Conversion Example: (173)10 Quotient Remainder Coefficient 173 / 8 = 21 5 a0 = 5 21 / 8 = 2 5 a1 = 5 2 / 8 = 0 2 a2 = 2 Answer: (175)10 = (a2 a1 a0)8 = (255)8 Example: (0.3125)10 Integer Fraction Coefficient 0.3125 * 8 = 2 . 5 a-1 = 2 0.5 * 8 = 4 . 0 a-2 = 4 Answer: (0.3125)10 = (0.a-1 a-2 a-3)8 = (0.24)8

Binary − Octal Conversion 0 0 0 1 0 0 1 2 0 1 0 3 0 1 1 4 1 0 0 5 1 0 1 6 1 1 0 7 1 1 1 8 = 23 Each group of 3 bits represents an octal digit Example: Assume Zeros ( 1 1 0 0 1 . 1 1 )2 ( 3 1 . 6 )8 Works both ways (Binary to Octal & Octal to Binary)

Binary − Hexadecimal Conversion 0 0 0 0 1 0 0 0 1 2 0 0 1 0 3 0 0 1 1 4 0 1 0 0 5 0 1 0 1 6 0 1 1 0 7 0 1 1 1 8 1 0 0 0 9 1 0 0 1 A 1 0 1 0 B 1 0 1 1 C 1 1 0 0 D 1 1 0 1 E 1 1 1 0 F 1 1 1 1 16 = 24 Each group of 4 bits represents a hexadecimal digit Example: Assume Zeros ( 1 1 0 0 1 . 0 1 )2 ( 1 9 . 4 )16 Works both ways (Binary to Hex & Hex to Binary)

Octal − Hexadecimal Conversion Convert to Binary as an intermediate step Example: ( 1 5 . 3 )8 Assume Zeros Assume Zeros ( 0 0 1 1 0 1 . 0 1 1 )2 ( 0 D . 6 )16 Works both ways (Octal to Hex & Hex to Octal)