Chapter 2 Number Systems.

Slides:



Advertisements
Similar presentations
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.
Advertisements

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:
Numbers. Number Conversion Convert – Binary number to decimal numbers – Octal numbers to decimal numbers – Hexadecimal to decimal numbers Convert – Decimal.
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.
Converting Binary to Octal
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.
Prepared By Rama Gaikwad 1. Number Systems. Common Number Systems SystemBaseSymbols Used by humans? Used in computers? Decimal100, 1, … 9YesNo Binary20,
Number Systems.
Fundamentals of Python: First Programs Chapter 4: Number Systems.
EKT 121 / 4 ELEKTRONIK DIGIT 1 CHAPTER 1 : INTRODUCTION.
1 Number SystemsLecture 8. 2 BINARY (BASE 2) numbers.
Conversion of Number System Conversion Among Bases The possibilities: Hexadecimal DecimalOctal Binary
Chapter 2 Binary Values and Number Systems. 2 2 Natural Numbers Zero and any number obtained by repeatedly adding one to it. Examples: 100, 0, 45645,
Number systems, Operations, and Codes
Introduction to Numerical Analysis I MATH/CMPSC 455 Binary Numbers.
CPS120: Introduction to Computer Science Computer Math: Converting to Decimal.
Positional Notation 642 in base 10 positional notation is:
Number Systems Binary to Decimal Octal to Decimal Hexadecimal to Decimal Binary to Octal Binary to Hexadecimal Two’s Complement.
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,
Chapter 2 Number Systems Consists of a set of symbols called digits and a set of relations such as +, -, x, /.
1. Number Systems Chapt. 2 Location in course textbook.
ITEC 1011 Introduction to Information Technologies 1. Number Systems Chapt. 2 Location in course textbook.
Arithmetic Chapter 4 Subject: Digital System Year: 2009.
Percentages. What Are Percentages? A percentage is a number expressed as a fraction of 100. We use the percent sign % when representing numbers as a percentage.
Computer Studies Today Chapter 19 1 Chapter 19. Computer Studies Today Chapter 19 2 »Information stored in a computer is in two states: –ON –OFF.
 2012 Pearson Education, Inc. Slide Chapter 4 NumerationSystems.
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.
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.
Appendix F Number Systems binary 0, 1 0, 1, 2, 3, 4, 5, 6, 7
Introduction To Number Systems
Digital Design Chapter One Digital Systems and Binary Numbers
Octal to Decimal Decimal Octal Binary Hexadecimal.
NUMBER SYSTEM Prepared by: Engr Zakria.
CHAPTER 1 : INTRODUCTION
Number Systems.
Writer:-Rashedul Hasan. Editor:- Jasim Uddin
ITE102 – Computer Programming (C++)
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 Systems Lab session 1 Xuan Guo.
Number System conversions
Chapter 1 Number Systems & Conversions
Clinical Medical Assisting
Number Systems and Binary Arithmetic
Introduction to IT By: Muhammed s. anwar.
Number Systems Base 2, 10, 16.
MMNSS COLLEGE,KOTTIYAM DEPARTMENT OF PHYSICS
Numbering System TODAY AND TOMORROW 11th Edition
Numbering Systems and Arithmetic operations on Hex, binary, and octal
Digital Logic Design (ECEg3141) 2. Number systems, operations & codes 1.
Chapter 2: Number Systems
Chapter 1 Number System RGGP, Narwana.
Chapter Four Data Representation in Computers By Bezawit E.
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 System.
Chapter 2 Number Systems.
1. Number Systems Chapt. 2.
Presentation transcript:

Chapter 2 Number Systems

Introduction A number system is a set of symbols used to express quantities as the basis for counting, determining order, comparing amounts, performing calculations.

The Decimal Number System The decimal number system is used in our everyday life. It has values from 0 – 9. Decimal number system has a base of 10. This means that each digit in the number is multiplied by 10 raised to a power corresponding to that digit’s position.

Decimal Number System (con’t.) (47)10 7 x 100 = 7X1 4 x 101 = 4X10

Decimal Number System (con’t.) (4928)10 8 x 100 = 8x1 2 x 101 = 1x10 9 x 102 = 9x100 4 x 103 = 4x100

The Binary Number System Binary is a number system used by digital devices like computers. In the binary system, there are only two digits, 0 and 1. The binary system is said to have a base of 2.

Binary Number System (con’t.) (1001)2 1 x 20 = 1x1 0 x 21 = 0x2 0 x 22 = 0x4 1 x 23 = 1x8

The Hexadecimal Number System Hexadecimal number system is a numeral system with a base of 16. The values are represented by 0-9, A,B,C,D,E. Each hexadecimal digit represents four (4) binary bits.

The Octal Number System Octal number system is a numeral system with a base of 8. The values are represented by 0-8. Each octal digit represents three (3) binary bits.

Conversions between Binary and Decimal Number System (10011)2 1 x 20 = 1x1 1 x 21 = 1x2 0 x 22 = 0x4 0 x 23 = 0x8 1 x 24 = 1x16 (19)10

Conversions between Binary and Decimal Number System (101001)2 1 x 20 = 1x1 0 x 21 = 0x2 0 x 22 = 0x4 1 x 23 = 1x8 0 x 24 = 0x16 1 x 25 = 1x32 (41)10

Conversions between Binary and Decimal Number System (con’t.) (101.011)2 1 x 2-3 = 1x1/8 = 1x0.125 1 x 2-2 = 0x1/4 = 1x0.250 0 x 2-1 = 0x1/2 = 0x0.500 1 x 21 = 0x1 = 1 0 x 22 = 1x2 = 0 1 x 23 = 1x4 = 4 (5.375)10

Conversions between Binary and Decimal Number System (con’t.) (1100.1011)2 1 x 2-4 = 1x1/8 = 1x0.0625 1 x 2-3 = 1x1/8 = 1x0.125 0 x 2-2 = 0x1/4 = 0x0.250 1 x 2-1 = 0x1/2 = 1x0.500 0 x 20 = 0x1 = 0 0 x 21 = 0x2 = 0 1 x 22 = 1x4 = 4 1 x 23 = 1x8 = 8 (12.6875)10

Conversions from Decimal to Binary Number Systems To convert a decimal number to its binary equivalent, we should repeatedly divide the decimal number by 2.

Conversions from Decimal to Binary Number Systems (con’t.) (18)10 = (10010)2 Use 2 N R A 2 18 0 (LSD) 2 9 1 2 4 0 2 2 0 1 (MSD)

Conversions from Decimal to Binary Number Systems (con’t.) (43)10 = (101011)2 2 43 1 (LSD) 2 21 1 2 10 0 2 5 1 2 2 0 1 (MSD)

Conversions from Decimal to Binary Number Systems (con’t.) To convert the decimal fraction to a binary number, repeatedly multiply the decimal fraction by 2.

Conversions from Decimal to Binary Number Systems (con’t.) (0.375)10 0.375 * 2 = 0.75 (MSD) .75 * 2 = 1.5 .50 * 2 = 1.0 (LSD) (0.011)2

Conversions from Decimal to Binary Number Systems (con’t.) (0.432)10 0.432 * 2 = 0.864 (MSD) .864 * 2 = 1.728 .728 * 2 = 1.456 .456 * 2 = 0.912 .912 * 2 = 1.824 (LSD) (0.01101)2

Binary Addition To add binary digits, the following rules should be used: Rule 4 Rule 3 Rule 2 Rule 1 1 +1 +0 10

Binary Addition (011)2 + (110)2 1