1. Number Systems.

Slides:



Advertisements
Similar presentations
DATA REPRESENTATION CONVERSION.
Advertisements

Number SystemsNumber Systems Modified By: AM. Sihan (Hardware Engineering)
Binary & Decimal numbers = 3* * *10 + 5*1 = 3* * * *10 0 Decimal system: Ten digits: 0,1,2,3,…,9 Example:
Representing Information as Bit Patterns Lecture 4 CSCI 1405, CSCI 1301 Introduction to Computer Science Fall 2009.
Number System Conversions Lecture L2.2 Section 2.3.
ITEC 1011 Introduction to Information Technologies 1. Number Systems Chapt. 2 Location in course textbook.
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.
Prepared By Rama Gaikwad 1. Number Systems. Common Number Systems SystemBaseSymbols Used by humans? Used in computers? Decimal100, 1, … 9YesNo Binary20,
They are the same as registers since they store binary numbers. Called shifting registers since they shift (left or right) the binary number stored in.
Converting binary to decimal decimal to binary
Revision Introductory Lesson
Lecture 7 How computers process data (Number Systems) PRESENTED BY MD. MAHBUBUL ALAM, PHD 1.
Fundamentals of IT UNIT-I OnlyforIPMCA. DIGITAL SIGNALS & LOGIC GATES Signals and data are classified as analog or digital. Analog refers to something.
Introduction to Computer Science Number Systems. Introduction to Computer Science Common Number Systems SystemBaseSymbols Used by humans? Used in computers?
Conversion of Number System Conversion Among Bases The possibilities: Hexadecimal DecimalOctal Binary
NUMBER SYSTEMS Prepared By K.Anitha Associate Professor Dept of ECE PVPSIT.
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.
Chapter1: Number Systems
Number Systems Prepared by Department of Preparatory year.
Digital Electronics Octal & Hexadecimal Number Systems.
Number System sneha.
Octal to Decimal Hexadecimal DecimalOctal Binary.
Positional Number Systems Decimal, Binary, Octal and Hexadecimal Numbers Wakerly Section
MicroProcessors Dr. Tamer Samy Gaafar Dept. of Computer & Systems Engineering Faculty of Engineering Zagazig University.
1. Number Systems. Common Number Systems SystemBaseSymbols Used by humans? Used in computers? Decimal100, 1, … 9YesNo Binary20, 1NoYes Octal80, 1, … 7No.
DECIMALBINARY a) b) c) d) e) f) Revision Exercise DECIMALBINARY a) b) c)
Data Representation (in computer system). Data Representation How do computers represent data? b The computers are digital Recognize.
Chapter 2 Number Systems Consists of a set of symbols called digits and a set of relations such as +, -, x, /.
Number Systems. Common Number Systems SystemBaseSymbols Used by humans? Used in computers? Decimal100, 1, … 9YesNo Binary20, 1NoYes Octal80, 1, … 7No.
Computer Programming 12 Mr. Jean February 11 th, 2014.
Lecture 2 Number Systems
Octal & Hexadecimal Number Systems
Computer Number System
Programming 12 : Mr. Jean February 8 th, The plan: Video clip of the day Website Introduction to Hexadecimal Converting from Hexadecimal to Decimal.
1. Number Systems Chapt. 2 Location in course textbook.
ITEC 1011 Introduction to Information Technologies 1. Number Systems Chapt. 2 Location in course textbook.
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 +
Decimal to Binary Conversion Press any key to continue…
Prepared By: Md Rezaul Huda Reza University of South Asia Computer Architecture By: Md Rezaul Huda Reza
1. Number Systems. Common Number Systems SystemBaseSymbols Used by humans? Used in computers? Decimal100, 1, … 9YesNo Binary20, 1NoYes Octal80, 1, … 7No.
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.
© 2009 Pearson Education, Upper Saddle River, NJ All Rights ReservedFloyd, Digital Fundamentals, 10 th ed Digital Fundamentals Tenth Edition Floyd.
Number Systems. There are 10 kinds of people in the world, those who understand binary and those who don’t.
1. Number Systems Chapt. 2. Common Number Systems SystemBaseSymbols Used by humans? Used in computers? Decimal100, 1, … 9YesNo Binary20, 1NoYes Octal80,
CPE 201 Digital Design Lecture 2: Digital Systems & Binary Numbers (2)
Binary & Decimal numbers
Positional Number Systems Decimal, Binary, Octal and Hexadecimal Numbers Wakerly Section
Octal to Decimal Decimal Octal Binary Hexadecimal.
1. Number Systems.
NUMBER SYSTEM Prepared by: Engr Zakria.
Number System.
Number Systems.
ITE102 – Computer Programming (C++)
1. Number Systems.
CSE 102 Introduction to Computer Engineering
Location in course textbook
Chapter 1 Number Systems & Conversions
MMNSS COLLEGE,KOTTIYAM DEPARTMENT OF PHYSICS
Binary Number System And Conversion
Numbering Systems and Arithmetic operations on Hex, binary, and octal
Number Systems.
Number Systems created by: S.Shahrukh haider
Binary Addition (1 of 2) Two 1-bit values A B A + B 1
Chapter 2 Number System.
1. Number Systems Chapt. 2.
Presentation transcript:

1. Number Systems

Common Number Systems System Base Symbols Used by humans? Used in computers? Decimal 10 0, 1, … 9 Yes No Binary 2 0, 1

Quantities/Counting Decimal Binary 1 2 10 3 11 4 100 5 101 6 110 7 111 1 2 10 3 11 4 100 5 101 6 110 7 111 p. 33

Quantities/Counting Decimal Binary 8 1000 9 1001 10 1010 11 1011 12 1100 13 1101 14 1110 15 1111

Quantities/Counting Decimal Binary 16 10000 17 10001 18 10010 19 10011 20 10100 21 10101 22 10110 23 10111 Etc.

Conversion Among Bases The possibilities: Decimal Binary pp. 40-46

Quick Example 2510 = 110012 Base Base

Weight 12510 => 5 x 100 = 5 2 x 101 = 20 1 x 102 = 100 125 Base

Binary to Decimal Decimal Binary

Binary to Decimal Technique Multiply each bit by 2n, where n is the “weight” of the bit The weight is the position of the bit, starting from 0 on the right Add the results

Example Bit “0” 1010112 => 1 x 20 = 1 1 x 21 = 2 0 x 22 = 0 1 x 23 = 8 0 x 24 = 0 1 x 25 = 32 4310

Decimal to Binary Decimal Binary

Decimal to Binary Technique Divide by two, keep track of the remainder First remainder is bit 0 (LSB, least-significant bit) Second remainder is bit 1 Etc.

Example 2 125 62 1 12510 = ?2 2 31 0 2 15 1 2 7 1 2 3 1 2 1 1 2 0 1 12510 = 11111012

Binary Addition Two 1-bit values A B A + B 1 10 “two” pp. 36-38

Binary Addition Two n-bit values Add individual bits Propagate carries E.g., 1 1 10101 21 + 11001 + 25 101110 46

Multiplication Decimal (just for fun) 35 x 105 175 000 35 3675 pp. 39

Multiplication Binary, two 1-bit values A B A  B 1

Multiplication Binary, two n-bit values As with decimal values E.g., 1110 x 1011 1110 1110 0000 1110 10011010

Fractions Conversions Decimal to decimal 3.14 => 4 x 10-2 = 0.04 1 x 10-1 = 0.1 3 x 100 = 3 3.14 pp. 46-50

Fractions Conversions Binary to decimal 10.1011 => 1 x 2-4 = 0.0625 1 x 2-3 = 0.125 0 x 2-2 = 0.0 1 x 2-1 = 0.5 0 x 20 = 0.0 1 x 21 = 2.0 2.6875 pp. 46-50

Fractions Conversions Decimal to binary .14579 x 2 0.29158 x 2 0.58316 x 2 1.16632 x 2 0.33264 x 2 0.66528 x 2 1.33056 etc. 3.14579 11.001001... p. 50