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.
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:
ECE 301 – Digital Electronics Course Introduction, Number Systems, Conversion between Bases, and Basic Binary Arithmetic (Lecture #1)
Mathematics with Binary. Question  Below is a binary string  Which is the least significant bit (LSB)?  Which is the most significant bit (MSB)? 0.
1 CSE-221 Digital Logic Design (DLD) Lecture-1: Digital Systems & Number Systems.
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
 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 Systems. Today Decimal Hexadecimal Binary –Unsigned Binary –1’s Complement Binary –2’s Complement Binary.
Dr. Ahmed Telba EE208: Logic Design Lecture# 1 Introduction & Number Systems.
Number systems, Operations, and Codes
Digital Logic Lecture 2 Number Systems
Number Base Conversions
Divisibility Rules and Finding Factors
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.
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)
CEC 220 Digital Circuit Design Number Systems & Conversions Friday, January 9 CEC 220 Digital Circuit Design Slide 1 of 16.
Octal & Hexadecimal Number Systems
Number Representation Lecture Topics How are numeric data items actually stored in computer memory? How much space (memory locations) is.
Computer Number System
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 +
CEC 220 Digital Circuit Design Number Systems & Conversions Wednesday, Aug 26 CEC 220 Digital Circuit Design Slide 1 of 16.
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:
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.
Conversions 1)Binary to Denary Method 1 Work out the position values of the binary bits and add those values together So above would be
ECE 2110: Introduction to Digital Systems Number Systems: conversions.
CPE 201 Digital Design Lecture 2: Digital Systems & Binary Numbers (2)
Positional Number Systems Decimal, Binary, Octal and Hexadecimal Numbers Wakerly Section
Octal to Decimal Decimal Octal Binary Hexadecimal.
By: Jonathan O. Cabriana
Integer Real Numbers Character Boolean Memory Address CPU Data Types
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
Binary Quiz UIN: ____________________
1. Number Systems.
Numbering System TODAY AND TOMORROW 11th Edition
Digital Logic Design (ECEg3141) 2. Number systems, operations & codes 1.
There are 10 types of people of people in this world…
Chapter 2: Number Systems
Digital Logic Design (CSNB163)
ECE 301 – Digital Electronics
Number Systems created by: S.Shahrukh haider
Number Systems Rayat Shikshan Sanstha’s
Binary Addition (1 of 2) Two 1-bit values A B A + B 1
Number Systems Rayat Shikshan Sanstha’s
Number Systems.
COE 202: Digital Logic Design Number Systems Part 2
1. Number Systems Chapt. 2.
Presentation transcript:

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

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 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:

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

DecimalBinaryOctalHex A B C D E F

Usefulness of Octal and Hex Numbers Useful for representing multibit binary numbers because their radices are integer multiples of = 2 5 A F. B E 16

Quiz: Convert from Binary to Octal:

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 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:

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.3 10 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: