2.1.1. 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 0 123 = 1x10 2 + 2x10 1 +

Slides:



Advertisements
Similar presentations
ECE 331 – Digital System Design
Advertisements

DATA REPRESENTATION CONVERSION.
Binary Addition Rules Adding Binary Numbers = = 1
CMP 101 Fundamentals of Computer and programming in C Rohit Khokher.
Decimal Addition What is going on? (carry) (subtract the base)
ECE 301 – Digital Electronics Course Introduction, Number Systems, Conversion between Bases, and Basic Binary Arithmetic (Lecture #1)
ECE 331 – Digital System Design
1 CSE-221 Digital Logic Design (DLD) Lecture-1: Digital Systems & Number Systems.
Number System Conversions Lecture L2.2 Section 2.3.
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.
Codes and number systems Introduction to Computer Yung-Yu Chuang with slides by Nisan & Schocken ( ) and Harris & Harris (DDCA)
+ CS 325: CS Hardware and Software Organization and Architecture Integers and Arithmetic.
Chapter 1 Digital Computers and Information. CSC 480 – Winter 2002 Digital Computer Basics Digital values represented as voltage values, e.g. Logic 1.
Chapter 3 Data Representation
CHAPTER 1 INTRODUCTION NUMBER SYSTEMS AND CONVERSION.
CHAPTER 1 INTRODUCTION NUMBER SYSTEMS AND CONVERSION
1-1 Lecture 1 Class Overview and Appendix A -- Number Systems.
Number Systems 2.1 Information Storage Why not decimal numbers in computers ? Difficult to store ENIAC (1 st electronic computer) used 10 vacuum tubes.
– Digital Circuit 1 Choopan Rattanapoka
Number systems, Operations, and Codes
Chapter1: Number Systems
Positional Notation 642 in base 10 positional notation is:
Number Base Conversions
Number Systems Binary to Decimal Octal to Decimal Hexadecimal to Decimal Binary to Octal Binary to Hexadecimal Two’s Complement.
Octal to Decimal Hexadecimal DecimalOctal Binary.
Positional Number Systems Decimal, Binary, Octal and Hexadecimal Numbers Wakerly Section
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, /.
Introduction To Number Systems Binary System M. AL-Towaileb1.
Number Representation Lecture Topics How are numeric data items actually stored in computer memory? How much space (memory locations) is.
Computer Number System
ECE 362 Microprocessor Systems and Interfacing ©5-1 Lecture 1 Hexadecimal Computation Outline n Decimal n Binary n Octal n Hexadecimal.
Dale Roberts Department of Computer and Information Science, School of Science, IUPUI CSCI 230 Information Representation: Positive Integers Dale Roberts,
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. ASCII – American Standard Code for Information Interchange – Standard encoding scheme used to represent characters in binary format on.
Chapter 5 NUMBER REPRESENTATION AND ARITHMETIC CIRCUITS.
Number Systems and Representations Binary Representation Binary Representation Signed numbers Signed numbers Very small and very big numbers Very small.
ECE 2110: Introduction to Digital Systems Number Systems: conversions.
Prepared By: Norakmar Binti Mohd Nadzari CHAPTER 2 ARITHMETIC AND LOGIC UNIT.
Introduction To Number Systems
Positional Number Systems Decimal, Binary, Octal and Hexadecimal Numbers Wakerly Section
Octal to Decimal Decimal Octal Binary Hexadecimal.
Digital Systems and Number Systems
Integer Real Numbers Character Boolean Memory Address CPU Data Types
CHAPTER 1 INTRODUCTION NUMBER SYSTEMS AND CONVERSION
CSE 102 Introduction to Computer Engineering
Chapter 3 Data Representation
University of Gujrat Department of Computer Science
Chapter 1 Number Systems & Conversions
King Fahd University of Petroleum and Minerals
1. Number Systems.
Domain 1: The Number System
Numbering System TODAY AND TOMORROW 11th Edition
Numbering Systems and Arithmetic operations on Hex, binary, and octal
Digital Electronics and Microprocessors
Bits and Bytes Topics Representing information as bits
Digital Logic Design (CSNB163)
ECE 301 – Digital Electronics
Chapter Four Data Representation in Computers By Bezawit E.
Comp Org & Assembly Lang
“The Class That Gives CMU Its Zip!”
Information Representation
“The Class That Gives CMU Its Zip!”
Introduction To Number Systems
COE 202: Digital Logic Design Number Systems Part 2
Presentation transcript:

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 x x10 0 What are a 2, a 1, and a 0 in 123 = a 2 x8 2 + a 1 x8 1 + a 0 x8 0

Number System Fraction X.Y = a n-1 b n-1 + a n-2 b n-2 + …. + a 0 b 0 + a -1 b -1 + a -2 b -2 + … = a 2 x8 2 + a 1 x8 1 + a 0 x8 0 + a -1 x a -2 x … Separate whole number & fraction 123 = a 2 x8 2 + a 1 x8 1 + a 0 x = a -1 x a -2 x …

Binary to Decimal Multiply positional weights by digits and add – – – Resulting decimal number represents the value

Decimal to Binary Decimal number D to base-2 number X – Continue dividing D by 2 – Take the last quotient and all remainder – >

Other Number System ? base 12 base 16 base 60 ? –

Bases 2, 8, 16, etc. 3 binary bits into a single octal 4 binary bits into a single hex E X Use characters ‘0’ to ‘9’ and ‘A’ to ‘F’ Write FA1D37B 16 in C as 0xFA1D37B – Or 0xfa1d37b A B C D E F Hex Decimal Binary

Arithmetic in bases base 10 Addition – carry Subtraction -- borrow base 16

Digital World Why not decimal numbers in computers ? Difficult to store ENIAC (1 st electronic computer) used 10 vacuum tubes Difficult to transmit Messy for digital logic functions Addition, multiplication, etc.

Binary Representations Shannon’s Information Theory Electronic Implementation – Easy to store with bistable elements – Reliably transmitted on noisy and inaccurate wires – Straightforward implementation of arithmetic functions 0.0V 0.5V 2.8V 3.3V 010