1 Number SystemsLecture 8. 2 BINARY (BASE 2) numbers.

Slides:



Advertisements
Similar presentations
Number SystemsNumber Systems Modified By: AM. Sihan (Hardware Engineering)
Advertisements

Chapter 2 : Number System
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.
The Binary Number System
Chapter 1 Number Systems and Codes William Kleitz Digital Electronics with VHDL, Quartus® II Version Copyright ©2006 by Pearson Education, Inc. Upper Saddle.
Number Systems and Arithmetic
COE 202: Digital Logic Design Number Systems Part 1
Number Systems and Codes In PLC
Binary Numbers.
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
Number Systems.
Lecture for Week Spring.  Numbers can be represented in many ways. We are familiar with the decimal system since it is most widely used in everyday.
CS101 Introduction to Computing Lecture 8 Binary Numbers & Logic Operations.
1 Problem Solving using computers Data.. Representation & storage Representation of Numeric data The Binary System.
Number systems: binary, decimal, hexadecimal and octal. Conversion between various number systems Number systems: binary, decimal, hexadecimal and octal.
Conversion of Number System Conversion Among Bases The possibilities: Hexadecimal DecimalOctal Binary
Engineering 1040: Mechanisms & Electric Circuits Spring 2014 Number Systems.
ENGINEERS FUTURE To optimize things When we type some letters or words, the computer translates them in numbers as computers can understand only numbers.
Binary Number System & Logic Operations. The focus of the last lecture was on the microprocessor During that lecture we learnt about the function of the.
CCE-EDUSAT SESSION FOR COMPUTER FUNDAMENTALS Date: Session III Topic: Number Systems Faculty: Anita Kanavalli Department of CSE M S Ramaiah.
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.
CPS120: Introduction to Computer Science Computer Math: Converting to Decimal.
Positional Notation 642 in base 10 positional notation is:
Digital Electronics Octal & Hexadecimal Number Systems.
Introduction to Number System
Number System sneha.
Octal to Decimal Hexadecimal DecimalOctal Binary.
Binary01.ppt Decimal Decimal: Base 10 means 10 Unique numerical digits ,00010,000 Weight Positions 3,
CMP 100 Introduction to Computing Lecture Binary Numbers & Logic Operations.
Codes Octal Power Hexadecimal ASCII BCD Code
Octal & Hexadecimal Number Systems
Computer Number System
ECE 3110: Introduction to Digital Systems Number Systems.
Chapter 1 Number Systems Digital Electronics. Topics discussed in last lecture Digital systems Advantages of using digital signals over analog. Disadvantages.
CSC 110 – Intro to Computing Lecture 3: Converting between bases & Arithmetic in other bases.
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 32 Binary Number System. Objectives After completing this chapter, you will be able to: –Describe the binary number system –Identify the place.
Chapter 5 NUMBER REPRESENTATION AND ARITHMETIC CIRCUITS.
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.
Programmable Logic Controller
Digital Design Chapter One Digital Systems and Binary Numbers
Octal to Decimal Decimal Octal Binary Hexadecimal.
Discrete Mathematics Numbering System.
Digital Electronics INTRODUCTION ANALOG VS DIGITAL NUMBER SYSTEMS.
Number Systems.
Writer:-Rashedul Hasan. Editor:- Jasim Uddin
Base ‘b’ number for i = 0 to n – 1 for an n digit quantity
CSE 102 Introduction to Computer Engineering
Location in course textbook
2.0 COMPUTER SYSTEM 2.2 Number System and Representation
Number System conversions
Chapter 1 Number Systems & Conversions
Number Systems and Binary Arithmetic
Introduction to IT By: Muhammed s. anwar.
Binary / Hex Binary and Hex The number systems of Computer Science.
Digital Electronics and Microprocessors
Digital Logic Design (CSNB163)
Number Systems created by: S.Shahrukh haider
Chapter 2 Number Systems.
Number Systems Rayat Shikshan Sanstha’s
Chapter 2 Number Systems.
Number Systems Rayat Shikshan Sanstha’s
Chapter 2 Number Systems.
Chapter 2 Number System.
Chapter 2 Number Systems.
1. Number Systems Chapt. 2.
Presentation transcript:

1 Number SystemsLecture 8

2 BINARY (BASE 2) numbers

3 DECIMAL (BASE 10) numbers

4 Decimal (base 10) number system consists of 10 symbols or digits

5 Decimal The numbers are represented in Units, Tens, Hundreds, Thousands; in other words as 10 power. 191=1 x x x 10 0  increasing power Th.Hund.Tens.Units

6 Binary (base 2) number system consists of just two 0 1

7 Binary On the pattern of Decimal numbers one could visualize Binary Representations:  Powers =1 x x x 2 0 =5 10

8 Conversion = = = 240 Decimal to Binary Binary to Decimal

9 Other popular number systems Octal –base = 8 –8 symbols (0,1,2,3,4,5,6,7) Hexadecimal –base = 16 –16 symbols (0,1,2,3,4,5,6,7,8,9,A,B,C,D,E,F)

10 Codes Octal  Power Hexadecimal A B C D E F

11 Code conversions Decimal to Octal Similar to Dec-to Binary: Start dividing by 8 and build Octal figures from Remainders: =

12 Code conversions Binary –to-Octal 3 bits of binary could provide weight of 8 10, that is equivalent to Octal;i.e: Bits: b2b1b0 Wts:421 Bin: 111  7 10 and Octal range 0-7 Example: = Octal Values: 4 7 2

13 Octal Conversion binary:Octal:   x x x 8 0

14 Decimal (base 10) numbers are expressed in the positional notation 4202 = 2x x x x10 3 The right-most is the least significant digit The left-most is the most significant digit

15 Decimal (base 10) numbers are expressed in the positional notation 4202 = 2x x x x10 3 1’s multiplier 1

16 Decimal (base 10) numbers are expressed in the positional notation 4202 = 2x x x x ’s multiplier 10

17 Decimal (base 10) numbers are expressed in the positional notation 4202 = 2x x x x ’s multiplier 100

18 Decimal (base 10) numbers are expressed in the positional notation 4202 = 2x x x x ’s multiplier 1000

19 Binary (base 2) numbers are also expressed in the positional notation = 1x x x x x2 4 The right-most is the least significant digit The left-most is the most significant digit

20 Binary (base 2) numbers are also expressed in the positional notation = 1x x x x x2 4 1’s multiplier 1

21 Binary (base 2) numbers are also expressed in the positional notation = 1x x x x x2 4 2’s multiplier 2

22 Binary (base 2) numbers are also expressed in the positional notation = 1x x x x x2 4 4’s multiplier 4

23 Binary (base 2) numbers are also expressed in the positional notation = 1x x x x x2 4 8’s multiplier 8

24 Binary (base 2) numbers are also expressed in the positional notation = 1x x x x x2 4 16’s multiplier 16

25 Counting in Decimal Counting in Binary

26 Why binary ? Because this system is natural for digital computers The fundamental building block of a digital computer – the switch – possesses two natural states, ON & OFF. It is natural to represent those states in a number system that has only two symbols, 1 and 0, i.e. the binary number system In some ways, the decimal number system is natural to us humans. Why?

27 Convert 75 to Binary remainder

28 Check =1x x x x x x x2 6 = =75

29 Convert 100 to Binary remainder

30 That finishes the - introduction to binary numbers and their conversion to and from decimal numbers