Positional Number Systems Decimal, Binary, Octal and Hexadecimal Numbers Wakerly Section 2.1-2.3.

Slides:



Advertisements
Similar presentations
ECE 331 – Digital System Design
Advertisements

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.
Appendix 1 Number Systems Objectives: Review of number systems and radix conversion methods Review of binary, octal, hexadecimal and BCD unsigned codes.
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:
ECE 301 – Digital Electronics Course Introduction, Number Systems, Conversion between Bases, and Basic Binary Arithmetic (Lecture #1)
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.
Number Systems and Arithmetic
BASICS OF COMPUTER APPLICATIONS ASB 102. UNIT 1 Introducing computer system  Number system  What is number system?  Types of number system  Their.
 Binary Binary  Binary Number System Binary Number System  Binary to Decimal Binary to Decimal  Decimal to Binary Decimal to Binary  Octal and Hexadecimal.
+ CS 325: CS Hardware and Software Organization and Architecture Integers and Arithmetic.
Number Systems.
Supplemental Chapter Number Bases
Conversion of Number System Conversion Among Bases The possibilities: Hexadecimal DecimalOctal Binary
NUMBER SYSTEM.
Number systems, Operations, and Codes
Digital Logic Lecture 2 Number Systems
Number Base Conversions
Number Systems Binary to Decimal Octal to Decimal Hexadecimal to Decimal Binary to Octal Binary to Hexadecimal Two’s Complement.
Digital Electronics Octal & Hexadecimal Number Systems.
Octal to Decimal Hexadecimal DecimalOctal Binary.
Positional Number Systems Decimal, Binary, Octal and Hexadecimal Numbers Wakerly Section
Chapter 1  Number Systems Decimal System Binary System Octal System Hexadecimal System  Binary weighted cods Signed number binary order  1’s and 2’s.
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,
WEEK #2 NUMBER SYSTEMS, OPERATION & CODES (PART 1)
Chapter 2 Number Systems Consists of a set of symbols called digits and a set of relations such as +, -, x, /.
Octal & Hexadecimal Number Systems
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):
Number Representation Lecture Topics How are numeric data items actually stored in computer memory? How much space (memory locations) is.
Number System Base b Use only digits of 0, 1, 2,…., b-1 Positional weights X = a n-1 b n-1 + a n-2 b n-2 + …. + a 0 b = 1x x10 1 +
ECE 2110: Introduction to Digital Systems Number Systems: conversions.
Cis303a_chapt03_exam1_answer.ppt CIS303A: System Architecture Exam 1: Chapter 3 Answer List the characters (digits) for the following bases. 1) Decimal:
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. There are 10 kinds of people in the world, those who understand binary and those who don’t.
Chapter 5 NUMBER REPRESENTATION AND ARITHMETIC CIRCUITS.
ECE 2110: Introduction to Digital Systems Number Systems: conversions.
1 Digital Logic Design (41-135) Chapter 5 Number Representation & Arithmetic Circuits Younglok Kim Dept. of Electrical Engineering Sogang University Spring.
CPE 201 Digital Design Lecture 2: Digital Systems & Binary Numbers (2)
Chapter 2 Binary Number Systems.
Octal to Decimal Decimal Octal Binary Hexadecimal.
Digital Systems and Number Systems
By: Jonathan O. Cabriana
Integer Real Numbers Character Boolean Memory Address CPU Data Types
CHAPTER 1 : INTRODUCTION
Number Systems.
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
IT 0213: INTRODUCTION TO COMPUTER ARCHITECTURE
Binary Quiz UIN: ____________________
EGRE 254 Number Systems and Codes 1/12/09
1. Number Systems.
Data Representation in Computer Systems
Numbering System TODAY AND TOMORROW 11th Edition
Digital Logic Design (ECEg3141) 2. Number systems, operations & codes 1.
Chapter 2: Number Systems
Digital Logic Design (CSNB163)
ECE 301 – Digital Electronics
Number Systems Rayat Shikshan Sanstha’s
Numeral systems (radix)
Number Systems Rayat Shikshan Sanstha’s
Number Systems.
COE 202: Digital Logic Design Number Systems Part 2
Presentation transcript:

Positional Number Systems Decimal, Binary, Octal and Hexadecimal Numbers Wakerly Section 2.1-2.3

Positional Number Systems The traditional number system is called a positional number system. A number is represented as a string of digits. Each digit position has a weight assoc. with it. Number’s value = a weighted sum of the digits

Fractions: Weights that are Negative Powers of 10

Binary Numbers The “base” is 2 instead of 10 100101.0011 The “base” is 2 instead of 10 Meaning: the weights are powers of 2 instead of powers of 10. Digits are called “bits,” for “binary digits.”

Quiz Convert the following binary numbers to decimal: 1011011.0110 00110.11001

Octal and Hexadecimal (“Hex”) Numbers Octal = base 8 Hexadecimal = base 16 Use A – F to represent the values 10 through 16 in each position.

Decimal Binary Octal Hex 5 101 6 110 7 111 8 1000 10 9 1001 11 1010 12 A 1011 13 B 1100 14 C 1101 15 D 1110 16 E 1111 17 F

Usefulness of Octal and Hex Numbers Useful for representing multibit binary numbers because their radices are integer multiples of 2. 10 0101 1010 1111 . 1011 1112 = 2 5 A F . B E16

Quiz: Convert from Binary to Octal: 1 101 011 110 111 11 011.101 1

Decimal-to-Radix-r Conversions Radix-r-to-decimal conversions are easy since we do arithmetic in decimal. However, decimal-to-radix-r conversions using decimal arithmetic is harder. To do the latter conversion, we convert the integer and fractional parts separately and add the results afterwards.

Decimal-to-Radix-r Conversions: Integer Part Successively divide number by r, taking remainder as result. Example: Convert 5710 to binary. 57 / 2 = 28 remainder 1 (LSB) /2 = 14 remainder 0 /2 = 7 remainder 0 /2 = 3 remainder 1 /2 = 1 remainder 1 /2 = 0 remainder 1 (MSB) Ans: 1110012

Decimal-to-Radix-r Conversions: Fractional Part Successively multiply number by r, taking integer part as result and chopping off integer part before next iteration. May be unending! Example: convert .310 to binary. .3 * 2 = .6 integer part = 0 .6 * 2 = 1.2 integer part = 1 .2 * 2 = .4 integer part = 0 .4 * 2 = .8 integer part = 0 .8 * 2 = 1.6 integer part = 1 .6 * 2 = 1.2 integer part = 1, etc. Ans =

Quiz Convert from decimal to binary: 0.5 73.426 290.9