SlideShare a Scribd company logo
NUMBER SYSTEM
Dr. (Mrs.) Gargi Khanna
Associate Professor
Electronics & Communication Engg. Deptt..
National Institute of Technology Hamirpur (HP)
Chapter-I
INTRODUCTION
 Decimal number system (Base 10).
 Some other number systems :
Number System Base/Radix No of possible
Digits
Decimal 10 10
Binary 2 2
Octal 8 8
Hexadecimal 16 16
 The number system with weights on position is called
weighted number system. e.g. Binary, Octal, Decimal, etc.
 Non-weighted number system e.g. gray code excess-3 code
G.Khanna, NITH
Characteristics of Numbering
Systems
 The number of digits is equal to the size of the
base.
 Zero is always the first digit and digits are
consecutive.
 The base number is never a digit.
 When 1 is added to the largest digit, a sum of
zero and a carry of one results.
 Numeric values determined by sum of the each
digit multiplied by positional values of the digits.
G.Khanna, NITH
Decimal Number System
Possible digits 0,1,2,3,4,5,6,7,8,9
Number d3d2 d1 d0. d-1d-2
(Integer) (fractional)
D = d3×103+d2×102 + d1×101 +d0×100 + d -1×10-1 +d -2×10-2
The value of the number is the sum of each digit multiplied by
the corresponding power of the radix
G.Khanna, NITH
Significant Digits
Binary: 1101101
Most significant digit Least significant digit
Decimal :4566
Hexadecimal: 196CA7A
Most significant digit Least significant digit
G.Khanna, NITH
Binary Number System
“Base 2 system”
 The binary number system is used to model
the series of electrical signals computers use
to represent information
 0 represents the no voltage or an off state
 1 represents the presence of voltage or an
on state
G.Khanna, NITH
 Computer perform all of their operations using the binary (base
2).
– Program code and data are stored and manipulated in binary.
– Each digit in a binary number is known as a bit (value 0 or 1).
– Bits are commonly stored and manipulated in groups of:
• 8 bit: Byte.
• 16 bit : Halfword.
• 32 bit: Word.
• 64 bit: Doubleword
G.Khanna, NITH
Binary Numbering Scale
Base 2 Number
Base 10
Equivalent
Power
Positional
Value
000 0 20 1
001 1 21 2
010 2 22 4
011 3 23 8
100 4 24 16
101 5 25 32
110 6 26 64
111 7 27 128
G.Khanna, NITH
Decimal to Binary Conversion
 Division Algorithm
 This method repeatedly divides a decimal
number by 2 and records the quotient and
remainder
– The remainder digits (a sequence of zeros and
ones) form the binary equivalent in least
significant to most significant digit sequence
G.Khanna, NITH
Division Algorithm
Convert 67 to its binary equivalent:
6710 = x2
Step 1: 67 / 2 = 33 R 1 Divide 64 by 2. Record quotient in next row
Step 2: 33 / 2 = 16 R 1 Again divide by 2; record quotient in next row
Step 3: 16 / 2 = 8 R 0 Repeat again
Step 4: 8 / 2 = 4 R 0 Repeat again
Step 5: 4 / 2 = 2 R 0 Repeat again
Step 6: 2 / 2 = 1 R 0 Repeat again
Step 7: 1 / 2 = 0 R 1 STOP when quotient equals 0
1 0 0 0 0 1 12
G.Khanna, NITH
Binary to Decimal Conversion
 The easiest method for converting a
binary number to its decimal equivalent
is to use the Multiplication Algorithm
 Multiply the binary digits by increasing
powers of two, starting from the right
 Then, to find the decimal number
equivalent, sum those products
G.Khanna, NITH
Multiplication Algorithm
Convert (10101111)2 to its decimal equivalent:
Binary 1 0 1 0 1 1 1 1
Positional Values
xxxxxxxx
2021222324252627
128 + 32 + 8 + 4 +2+1Products
17510
G.Khanna, NITH
Octal Number System
 Base 8 System
 Uses symbols 0 - 7
 Ease of convertion to binary
 Groups of three binary bits can be used
to represent each octal symbol
 Multiplication and division algorithms for
conversion to and from base 10
G.Khanna, NITH
Decimal to Octal Conversion
Convert 42910 to its octal equivalent:
429 / 8 = 53 R 5 Divide by 8; R is LSD
53 / 8 = 6 R 5 Divide Q by 8; R is next digit
6 / 8 = 0 R 6 Repeat until Q = 0
6558
G.Khanna, NITH
Octal to Decimal Conversion
Convert 6538 to its decimal equivalent:
6 5 3
xxx
82 81 80
384 + 40 + 3
42710
Positional Values
Products
Octal Digits
G.Khanna, NITH
Octal to Binary Conversion
Each octal number converts to 3 binary digits
475.038 =(100111101.000011) 2
To convert 6538 to binary, just
substitute code:
6 5 3
110 101 011
G.Khanna, NITH
Hexadecimal Number System
 Base 16 system
 Uses digits 0-9 &
letters A,B,C,D,E,F
 Groups of four bits
represent each
base 16 digit
G.Khanna, NITH
Decimal to Hexadecimal
Conversion
Convert 83110 to its hexadecimal equivalent:
831 / 16 = 51 R 15
51 / 16 = 3 R 3
3 / 16 = 0 R 3
33F16
= F in Hex
G.Khanna, NITH
Hexadecimal to Decimal
Conversion
Convert (3B4A)16 to its decimal equivalent:
Hex Digits 3 B 4 F
xxx
163 162 161 160
12288 +2816 + 64 +10
15,17810
Positional Values
Products
x
G.Khanna, NITH
Binary to Hexadecimal
Conversion
 The easiest method for converting binary to
hexadecimal is to use a substitution code
 Each hex number converts to 4 binary digits
G.Khanna, NITH
Convert 0111001010101111011010112 to hex
using the 4-bit substitution code :
0111 0010 1010 1111 0110 1011
Substitution Code
7 2 A F 6 B
76AF6B16
G.Khanna, NITH
Substitution code can also be used to convert
binary to octal by using 3-bit groupings:
010 101 101 010 111 001 101 010
Substitution Code
2 5 5 2 7 1 5 2
255271528
G.Khanna, NITH
G.Khanna, NITH
Number Decimal Binary Octal Hexadecimal
------ ------- ------- ----- -----------
Zero 0 0 0 0
One 1 1 1 1
Two 2 10 2 2
Three 3 11 3 3
Four 4 100 4 4
Five 5 101 5 5
Six 6 110 6 6
Seven 7 111 7 7
Eight 8 1000 10 8
Nine 9 1001 11 9
Ten 10 1010 12 A
Eleven 11 1011 13 B
Twelve 12 1100 14 C
Thirteen 13 1101 15 D
Fourteen 14 1110 16 E
Fifteen 15 1111 17 F
Sixteen 16 10000 20 10
Seventeen 17 10001 21 11
Eighteen 18 10010 22 12
Nineteen 19 10011 23 13
Twenty 20 10100 24 14
G.Khanna, NITH

More Related Content

PDF
Binary Arithmetic
PDF
Chapter 01 Basic Principles of Digital Systems
PPT
Data representation
PDF
Binary codes
PPTX
Data Reprersentation
PDF
Digital notes
PPT
Error detection and correction codes
PDF
Number Systems Basic Concepts
Binary Arithmetic
Chapter 01 Basic Principles of Digital Systems
Data representation
Binary codes
Data Reprersentation
Digital notes
Error detection and correction codes
Number Systems Basic Concepts

What's hot (20)

PPTX
Chap ii.BCD code,Gray code
PDF
Objective Questions Digital Electronics
PPTX
Computer architecture data representation
PPTX
number system
PDF
Ee 202 chapter 1 number and code system
PPT
Error detection and correction codes r006
PPTX
Digital Logic BCA TU Chapter 2.2
PPTX
Introduction number systems and conversion
PPTX
Data Representation
PPTX
Chapter 5: Cominational Logic with MSI and LSI
PPT
digital logic circuits, digital component floting and fixed point
PDF
chapter one && two.pdf
PPTX
Codes r005
PDF
FYBSC IT Digital Electronics Unit I Chapter I Number System and Binary Arithm...
PDF
Digital electronics & microprocessor Batu- s y computer engineering- arvind p...
DOCX
Digital Electronics Notes
PPT
Finite word lenth effects
PPT
Binary no
PPTX
What is Gray Code?
PPTX
Basics of digital electronics
Chap ii.BCD code,Gray code
Objective Questions Digital Electronics
Computer architecture data representation
number system
Ee 202 chapter 1 number and code system
Error detection and correction codes r006
Digital Logic BCA TU Chapter 2.2
Introduction number systems and conversion
Data Representation
Chapter 5: Cominational Logic with MSI and LSI
digital logic circuits, digital component floting and fixed point
chapter one && two.pdf
Codes r005
FYBSC IT Digital Electronics Unit I Chapter I Number System and Binary Arithm...
Digital electronics & microprocessor Batu- s y computer engineering- arvind p...
Digital Electronics Notes
Finite word lenth effects
Binary no
What is Gray Code?
Basics of digital electronics
Ad

Similar to Number system (20)

PPT
Data Representation Data Representation1
PPT
Chapter 2 Data Representation.pptChapter 2 Data Representation.ppt
PPTX
Number Systems - AK.pptx
PPTX
Number system and their conversion
PPTX
Chapter 2 Data Representation Data Representation
PPTX
Digital logic fundaments,DLF,Number System
PPTX
B sc cs i bo-de u-i number system
PPTX
Number system
PDF
Data representation
PPT
An introduction to the different number systems
PPT
Number Systems and its effectiveness .ppt
PPT
Number_Systems_Number base conversions.ppt
PPT
Number_Systems decimal, binary, octal, and hexadecimal
PPT
Number_Systems _binary_octal_hex_dec.ppt
RTF
DCF QNA edited
PDF
Digital Logic
PPTX
BEEE - Part B - Unit 3 - Digital Electronics PPT.pptx
PPTX
04 chapter03 02_numbers_systems_student_version_fa16
PPTX
Number systems and conversions
Data Representation Data Representation1
Chapter 2 Data Representation.pptChapter 2 Data Representation.ppt
Number Systems - AK.pptx
Number system and their conversion
Chapter 2 Data Representation Data Representation
Digital logic fundaments,DLF,Number System
B sc cs i bo-de u-i number system
Number system
Data representation
An introduction to the different number systems
Number Systems and its effectiveness .ppt
Number_Systems_Number base conversions.ppt
Number_Systems decimal, binary, octal, and hexadecimal
Number_Systems _binary_octal_hex_dec.ppt
DCF QNA edited
Digital Logic
BEEE - Part B - Unit 3 - Digital Electronics PPT.pptx
04 chapter03 02_numbers_systems_student_version_fa16
Number systems and conversions
Ad

Recently uploaded (20)

PDF
Categorization of Factors Affecting Classification Algorithms Selection
PDF
A SYSTEMATIC REVIEW OF APPLICATIONS IN FRAUD DETECTION
PDF
III.4.1.2_The_Space_Environment.p pdffdf
PDF
737-MAX_SRG.pdf student reference guides
PPTX
Nature of X-rays, X- Ray Equipment, Fluoroscopy
PPT
Total quality management ppt for engineering students
PPTX
introduction to high performance computing
PPTX
UNIT 4 Total Quality Management .pptx
PPT
INTRODUCTION -Data Warehousing and Mining-M.Tech- VTU.ppt
PDF
EXPLORING LEARNING ENGAGEMENT FACTORS INFLUENCING BEHAVIORAL, COGNITIVE, AND ...
PDF
86236642-Electric-Loco-Shed.pdf jfkduklg
PPTX
Fundamentals of Mechanical Engineering.pptx
PDF
Visual Aids for Exploratory Data Analysis.pdf
PPTX
Information Storage and Retrieval Techniques Unit III
PPTX
Current and future trends in Computer Vision.pptx
PPTX
Artificial Intelligence
PDF
R24 SURVEYING LAB MANUAL for civil enggi
PPT
introduction to datamining and warehousing
PDF
Exploratory_Data_Analysis_Fundamentals.pdf
PDF
Analyzing Impact of Pakistan Economic Corridor on Import and Export in Pakist...
Categorization of Factors Affecting Classification Algorithms Selection
A SYSTEMATIC REVIEW OF APPLICATIONS IN FRAUD DETECTION
III.4.1.2_The_Space_Environment.p pdffdf
737-MAX_SRG.pdf student reference guides
Nature of X-rays, X- Ray Equipment, Fluoroscopy
Total quality management ppt for engineering students
introduction to high performance computing
UNIT 4 Total Quality Management .pptx
INTRODUCTION -Data Warehousing and Mining-M.Tech- VTU.ppt
EXPLORING LEARNING ENGAGEMENT FACTORS INFLUENCING BEHAVIORAL, COGNITIVE, AND ...
86236642-Electric-Loco-Shed.pdf jfkduklg
Fundamentals of Mechanical Engineering.pptx
Visual Aids for Exploratory Data Analysis.pdf
Information Storage and Retrieval Techniques Unit III
Current and future trends in Computer Vision.pptx
Artificial Intelligence
R24 SURVEYING LAB MANUAL for civil enggi
introduction to datamining and warehousing
Exploratory_Data_Analysis_Fundamentals.pdf
Analyzing Impact of Pakistan Economic Corridor on Import and Export in Pakist...

Number system

  • 1. NUMBER SYSTEM Dr. (Mrs.) Gargi Khanna Associate Professor Electronics & Communication Engg. Deptt.. National Institute of Technology Hamirpur (HP) Chapter-I
  • 2. INTRODUCTION  Decimal number system (Base 10).  Some other number systems : Number System Base/Radix No of possible Digits Decimal 10 10 Binary 2 2 Octal 8 8 Hexadecimal 16 16  The number system with weights on position is called weighted number system. e.g. Binary, Octal, Decimal, etc.  Non-weighted number system e.g. gray code excess-3 code G.Khanna, NITH
  • 3. Characteristics of Numbering Systems  The number of digits is equal to the size of the base.  Zero is always the first digit and digits are consecutive.  The base number is never a digit.  When 1 is added to the largest digit, a sum of zero and a carry of one results.  Numeric values determined by sum of the each digit multiplied by positional values of the digits. G.Khanna, NITH
  • 4. Decimal Number System Possible digits 0,1,2,3,4,5,6,7,8,9 Number d3d2 d1 d0. d-1d-2 (Integer) (fractional) D = d3×103+d2×102 + d1×101 +d0×100 + d -1×10-1 +d -2×10-2 The value of the number is the sum of each digit multiplied by the corresponding power of the radix G.Khanna, NITH
  • 5. Significant Digits Binary: 1101101 Most significant digit Least significant digit Decimal :4566 Hexadecimal: 196CA7A Most significant digit Least significant digit G.Khanna, NITH
  • 6. Binary Number System “Base 2 system”  The binary number system is used to model the series of electrical signals computers use to represent information  0 represents the no voltage or an off state  1 represents the presence of voltage or an on state G.Khanna, NITH
  • 7.  Computer perform all of their operations using the binary (base 2). – Program code and data are stored and manipulated in binary. – Each digit in a binary number is known as a bit (value 0 or 1). – Bits are commonly stored and manipulated in groups of: • 8 bit: Byte. • 16 bit : Halfword. • 32 bit: Word. • 64 bit: Doubleword G.Khanna, NITH
  • 8. Binary Numbering Scale Base 2 Number Base 10 Equivalent Power Positional Value 000 0 20 1 001 1 21 2 010 2 22 4 011 3 23 8 100 4 24 16 101 5 25 32 110 6 26 64 111 7 27 128 G.Khanna, NITH
  • 9. Decimal to Binary Conversion  Division Algorithm  This method repeatedly divides a decimal number by 2 and records the quotient and remainder – The remainder digits (a sequence of zeros and ones) form the binary equivalent in least significant to most significant digit sequence G.Khanna, NITH
  • 10. Division Algorithm Convert 67 to its binary equivalent: 6710 = x2 Step 1: 67 / 2 = 33 R 1 Divide 64 by 2. Record quotient in next row Step 2: 33 / 2 = 16 R 1 Again divide by 2; record quotient in next row Step 3: 16 / 2 = 8 R 0 Repeat again Step 4: 8 / 2 = 4 R 0 Repeat again Step 5: 4 / 2 = 2 R 0 Repeat again Step 6: 2 / 2 = 1 R 0 Repeat again Step 7: 1 / 2 = 0 R 1 STOP when quotient equals 0 1 0 0 0 0 1 12 G.Khanna, NITH
  • 11. Binary to Decimal Conversion  The easiest method for converting a binary number to its decimal equivalent is to use the Multiplication Algorithm  Multiply the binary digits by increasing powers of two, starting from the right  Then, to find the decimal number equivalent, sum those products G.Khanna, NITH
  • 12. Multiplication Algorithm Convert (10101111)2 to its decimal equivalent: Binary 1 0 1 0 1 1 1 1 Positional Values xxxxxxxx 2021222324252627 128 + 32 + 8 + 4 +2+1Products 17510 G.Khanna, NITH
  • 13. Octal Number System  Base 8 System  Uses symbols 0 - 7  Ease of convertion to binary  Groups of three binary bits can be used to represent each octal symbol  Multiplication and division algorithms for conversion to and from base 10 G.Khanna, NITH
  • 14. Decimal to Octal Conversion Convert 42910 to its octal equivalent: 429 / 8 = 53 R 5 Divide by 8; R is LSD 53 / 8 = 6 R 5 Divide Q by 8; R is next digit 6 / 8 = 0 R 6 Repeat until Q = 0 6558 G.Khanna, NITH
  • 15. Octal to Decimal Conversion Convert 6538 to its decimal equivalent: 6 5 3 xxx 82 81 80 384 + 40 + 3 42710 Positional Values Products Octal Digits G.Khanna, NITH
  • 16. Octal to Binary Conversion Each octal number converts to 3 binary digits 475.038 =(100111101.000011) 2 To convert 6538 to binary, just substitute code: 6 5 3 110 101 011 G.Khanna, NITH
  • 17. Hexadecimal Number System  Base 16 system  Uses digits 0-9 & letters A,B,C,D,E,F  Groups of four bits represent each base 16 digit G.Khanna, NITH
  • 18. Decimal to Hexadecimal Conversion Convert 83110 to its hexadecimal equivalent: 831 / 16 = 51 R 15 51 / 16 = 3 R 3 3 / 16 = 0 R 3 33F16 = F in Hex G.Khanna, NITH
  • 19. Hexadecimal to Decimal Conversion Convert (3B4A)16 to its decimal equivalent: Hex Digits 3 B 4 F xxx 163 162 161 160 12288 +2816 + 64 +10 15,17810 Positional Values Products x G.Khanna, NITH
  • 20. Binary to Hexadecimal Conversion  The easiest method for converting binary to hexadecimal is to use a substitution code  Each hex number converts to 4 binary digits G.Khanna, NITH
  • 21. Convert 0111001010101111011010112 to hex using the 4-bit substitution code : 0111 0010 1010 1111 0110 1011 Substitution Code 7 2 A F 6 B 76AF6B16 G.Khanna, NITH
  • 22. Substitution code can also be used to convert binary to octal by using 3-bit groupings: 010 101 101 010 111 001 101 010 Substitution Code 2 5 5 2 7 1 5 2 255271528 G.Khanna, NITH
  • 23. G.Khanna, NITH Number Decimal Binary Octal Hexadecimal ------ ------- ------- ----- ----------- Zero 0 0 0 0 One 1 1 1 1 Two 2 10 2 2 Three 3 11 3 3 Four 4 100 4 4 Five 5 101 5 5 Six 6 110 6 6 Seven 7 111 7 7 Eight 8 1000 10 8 Nine 9 1001 11 9 Ten 10 1010 12 A Eleven 11 1011 13 B Twelve 12 1100 14 C Thirteen 13 1101 15 D Fourteen 14 1110 16 E Fifteen 15 1111 17 F Sixteen 16 10000 20 10 Seventeen 17 10001 21 11 Eighteen 18 10010 22 12 Nineteen 19 10011 23 13 Twenty 20 10100 24 14