NUMBER SYSTEM AND CONVERSION 350151- Digital Circuit Choopan Rattanapoka.

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

DATA REPRESENTATION 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:
CS 151 Digital Systems Design Lecture 2 Number Systems Prof. Ahmed Sameh Room 239A.
2.1 Positional Number Systems ReturnNext Why do we discuss the number systems?  Digital systems only have two states. So digital circuits process binary.
Digital Systems Number Systems and Codes Wen-Hung Liao, Ph.D.
ENGIN112 L2: Number Systems September 5, 2003 ENGIN 112 Intro to Electrical and Computer Engineering Lecture 2 Number Systems Russell Tessier KEB 309 G.
Converting Binary to Octal
BASICS OF COMPUTER APPLICATIONS ASB 102. UNIT 1 Introducing computer system  Number system  What is number system?  Types of number system  Their.
Chapter 1 1 Number Systems. 2 Objectives  Understand why computers use binary (Base-2) numbering.  Understand how to convert Base-2 numbers to Base-
Revision Introductory Lesson
Chapter 1 Number Systems and Codes 1. Outline 1. NUMBER SYSTEMS AND CODES 2. DIGITAL ELECTRONIC SIGNALS AND SWITCHES 3. BASIC LOGIC GATES 4. PROGRAMMABLE.
Number Systems.
1 Number SystemsLecture 8. 2 BINARY (BASE 2) numbers.
Title NUMERIC SYSTEMS USED IN NETWORKING NUMERIC SYSTEMS USED IN NETWORKING.
Number systems: binary, decimal, hexadecimal and octal. Conversion between various number systems Number systems: binary, decimal, hexadecimal and octal.
Number System. Popular number systems Decimal. (Base 10). The system that we humans are most familiar with. Binary. (Base 2). Octal. (Base 8). Hexadecimal.
CHAPTER 2 NUMBER SYSTEMS, OPERATIONS, AND CODES 数制系统、运算和编码 主讲教师:谷雷.
NUMBER SYSTEM.
Lecture 4 Last Lecture –Positional Numbering Systems –Converting Between Bases Today’s Topics –Signed Integer Representation Signed magnitude One’s complement.
CONVERSION OF NUMBER SYSTEMS FAHEEM ANWAR MANAGER NETWORKS ACADEMY PTCL ACADEMY.
– Digital Circuit 1 Choopan Rattanapoka
1 Chapter 2 Number Systems, Operations, and Codes.
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.
Number Base Conversions
Number System sneha.
Octal to Decimal Hexadecimal DecimalOctal Binary.
DECIMALBINARY a) b) c) d) e) f) Revision Exercise DECIMALBINARY a) b) c)
Discrete Mathematics Numbering System.
NUMBER SYSTEM. Number System Number Base B => B symbols – Base 16(Hexa):0, 1,……9, A,…, E, F – Base 10 (Decimal): 0, 1, 2,……, 7, 8, 9 – Base 8(Octal):
Computer Number System
Arithmetic Chapter 4 Subject: Digital System Year: 2009.
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.
Chapter 01 Numbers. Chapter 02 Base 10 example Decimal Number Place Place (place - 1) ===============================
Ch2 Number systems and codes
Dr. Nermin Hamza 1. Materials Book: Digital Design 4 th M. Morris Mano and Michael D. Ciletti 2.
Coding Part 2. Weight of the Digit 3672 Thousands (10 3 )Hundreds (10 2 )Tens (10 1 )Units (1) = Weights Decimal Example (3672) 10 Binary.
1. Binary, Decimal, Hexadecimal and Octal. 2. Conversion between various number systems. Number Systems:
Prepared By: Norakmar Binti Mohd Nadzari CHAPTER 2 ARITHMETIC AND LOGIC UNIT.
Decimal Numbers.
Introduction To Number Systems
Different Numeral Systems
Octal to Decimal Decimal Octal Binary Hexadecimal.
Discrete Mathematics Numbering System.
NUMBER SYSTEM Prepared by: Engr Zakria.
By: Jonathan O. Cabriana
Digital Electronics INTRODUCTION ANALOG VS DIGITAL NUMBER SYSTEMS.
Writer:-Rashedul Hasan. Editor:- Jasim Uddin
ITE102 – Computer Programming (C++)
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 Systems Lab session 1 Xuan Guo.
Number System conversions
Chapter 1 Number Systems & Conversions
Binary Quiz UIN: ____________________
Introduction to IT By: Muhammed s. anwar.
Numbering System TODAY AND TOMORROW 11th Edition
Binary Lesson 3 Hexadecimal
Binary Lesson 3 Hexadecimal
AP Computer Science LESSON 1 on Number Bases.
Number Systems created by: S.Shahrukh haider
Chapter 2 Number Systems.
Chapter 2 Number Systems.
Chapter 2 Number Systems.
Chapter 2 Number System.
Chapter 2 Number Systems.
Number System.
1. Number Systems Chapt. 2.
Presentation transcript:

NUMBER SYSTEM AND CONVERSION Digital Circuit Choopan Rattanapoka

Introduction  Many number systems are in use in digital technology. The most common are :  Decimal(Base 10)  Binary(Base 2)  Octal(Base 8)  Hexadecimal (Base 16)  The decimal system is the number system that we use everyday

Number System  Decimal system uses symbols (digits) for the ten values 0, 1, 2, 3, 4, 5, 6, 7, 8, 9  Binary System uses digits for the two values 0, and 1  Octal System uses digits for the eight values 0, 1, 2, 3, 4, 5, 6, 7  Hexadecimal System uses digits for the sixteen values 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, A, B, C, D, E, F to represent any number, no matter how large or how small.

Decimal System  The decimal system is composed of 10 numerals or symbols. These 10 symbols are 0,1,2,3,4,5,6,7,8,9; using these symbols as digits of a number, we can express any quantity.  Example : digit decimal point Most Significant Digit Least Significant Digit

Binary System  The binary system is composed of 2 numerals or symbols 0 and 1; using these symbols as digits of a number, we can express any quantity.  Example : bit binary point Most Significant Bit Least Significant Bit

Decimal Number Quantity (positional number)  (base-10) 1 X 10 0 = 1 0 X 10 1 = 0 5 X 10 2 = X 10 3 = = 3501

Binary-to-Decimal Conversion  (base-2) 1 X 2 0 = 1 0 X 2 1 = 0 1 X 2 2 = 4 1 X 2 3 = = = 13 10

Octal-to-Decimal Conversion  (base-8) 7 X 8 0 = 7x1 = 7 1 X 8 1 = 1x8 = 8 2 X 8 2 = 2x64 = X 8 3 = 5x512 = = =

Hexadecimal-to-Decimal Conversion  1 A C F (base-16) [ A = 10, B = 11, C = 12, D = 13, E = 14, F = 15 ] 15 X 16 0 =15x1 = X 16 1 =12x16 = X 16 2 =10x256 = X 16 3 = 5x4096 = = ACF 16 =

Decimal Number Quantity (fractional number)  (base-10) 5 X = 5x0.1 = X = 8x0.01 = X = 1x0.001 = = 0.581

Binary-to-Decimal Conversion  (base-2) 1 X 2 -1 = 1x0.5 = X 2 -2 = 0x0.25 = 0 1 X 2 -3 = 1x0.125 = = =

Octal-to-Decimal Conversion . 2 5 (base-8) 2 X 8 -1 = 2x0.125 = X 8 -2 = 5x = = =

Hexadecimal-to-Decimal Conversion . F 5 (base-16) 15 X16 -1 = 15x = X16 -2 = 5x = = F5 16 =

Exercise 1  Convert these binary system numbers to decimal system numbers    

Decimal-to-Binary Conversion (positional number)  Remainder Remainder Remainder Remainder =

Decimal-to-Octal Conversion  Remainder 2 3 Remainder = 372 8

Decimal-to-Hexadecimal Conversion  Remainder = ? = FA 16

Decimal-to-Binary Conversion (fractional number)  x 2 = x 2 = x 2 = x 2 = =

Decimal-to-Octal Conversion  x 8 = x 8 = =

Decimal-to-Hexadecimal Conversion  x 16 = =

Example :Decimal-to-Binary Conversion (Estimation)  x 2 = x 2 = x 2 = x 2 = x 2 = x 2 = x 2 = x 2 = x 2 = x 2 =      

Exercise 2  Convert these decimal system numbers to binary system numbers  127  38  22.5 

Base X – to – Base Y Conversion  We can convert base x number to base y number by following these steps :  Convert base x to base 10 (decimal system number)  Then, convert decimal number to base y

Example  Convert to hexadecimal system number  Convert to decimal system number = (3x8 2 )+(7x8 1 )+(2x8 0 ). (3x8 -1 ) + (4x8 -2 ) = =  Convert to hexadecimal system number / 16 = 15 remainder  FA 16 Positional number * 16 =  Fractional number = FA.7 16

Exercise 3 (TODO)  Convert these numbers to octal system number    5A.B 16  Convert these numbers to binary system number  5A.B 16 