SlideShare a Scribd company logo
1 of 24
Download to read offline
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
x
x
x
x
x
x
x
x
20
21
22
23
24
25
26
27
128 + 32 + 8 + 4 +2+1
Products
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
x
x
x
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
x
x
x
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

What's hot

FYBSC IT Digital Electronics Unit IV Chapter I Multiplexer, Demultiplexer, AL...
FYBSC IT Digital Electronics Unit IV Chapter I Multiplexer, Demultiplexer, AL...FYBSC IT Digital Electronics Unit IV Chapter I Multiplexer, Demultiplexer, AL...
FYBSC IT Digital Electronics Unit IV Chapter I Multiplexer, Demultiplexer, AL...Arti Parab Academics
 
Logic gates - AND, OR, NOT, NOR, NAND, XOR, XNOR Gates.
Logic gates - AND, OR, NOT, NOR, NAND, XOR, XNOR Gates.Logic gates - AND, OR, NOT, NOR, NAND, XOR, XNOR Gates.
Logic gates - AND, OR, NOT, NOR, NAND, XOR, XNOR Gates.Satya P. Joshi
 
Code conversions.pptx415.pptx
Code conversions.pptx415.pptxCode conversions.pptx415.pptx
Code conversions.pptx415.pptxMariaJoseph591921
 
Parity Generator and Parity Checker
Parity Generator and Parity CheckerParity Generator and Parity Checker
Parity Generator and Parity CheckerJignesh Navdiya
 
BCD to Decimal - Digital Electronics
BCD to Decimal - Digital ElectronicsBCD to Decimal - Digital Electronics
BCD to Decimal - Digital ElectronicsMilap Bhanderi
 
Error detection and correction codes
Error detection and correction codesError detection and correction codes
Error detection and correction codesGargiKhanna1
 
Number system in Digital Electronics
Number system in Digital ElectronicsNumber system in Digital Electronics
Number system in Digital ElectronicsJanki Shah
 
Combinational Logic Circuit
Combinational Logic CircuitCombinational Logic Circuit
Combinational Logic CircuitGargiKhanna1
 
3.codes( binary code ,excess 3, gray code )
3.codes( binary code ,excess 3, gray code )3.codes( binary code ,excess 3, gray code )
3.codes( binary code ,excess 3, gray code )MdFazleRabbi18
 
Chap ii.BCD code,Gray code
Chap ii.BCD code,Gray codeChap ii.BCD code,Gray code
Chap ii.BCD code,Gray codeBala Ganesh
 
Number System (Binary,octal,Decimal,Hexadecimal)
Number System (Binary,octal,Decimal,Hexadecimal)Number System (Binary,octal,Decimal,Hexadecimal)
Number System (Binary,octal,Decimal,Hexadecimal)Lovely Singh
 
FYBSC IT Digital Electronics Unit II Chapter I Boolean Algebra and Logic Gates
FYBSC IT Digital Electronics Unit II Chapter I Boolean Algebra and Logic GatesFYBSC IT Digital Electronics Unit II Chapter I Boolean Algebra and Logic Gates
FYBSC IT Digital Electronics Unit II Chapter I Boolean Algebra and Logic GatesArti Parab Academics
 
Boolean algebra simplification and combination circuits
Boolean algebra simplification and combination circuitsBoolean algebra simplification and combination circuits
Boolean algebra simplification and combination circuitsJaipal Dhobale
 

What's hot (20)

FYBSC IT Digital Electronics Unit IV Chapter I Multiplexer, Demultiplexer, AL...
FYBSC IT Digital Electronics Unit IV Chapter I Multiplexer, Demultiplexer, AL...FYBSC IT Digital Electronics Unit IV Chapter I Multiplexer, Demultiplexer, AL...
FYBSC IT Digital Electronics Unit IV Chapter I Multiplexer, Demultiplexer, AL...
 
Bcd
BcdBcd
Bcd
 
Binary arithmetic
Binary arithmeticBinary arithmetic
Binary arithmetic
 
Logic gates - AND, OR, NOT, NOR, NAND, XOR, XNOR Gates.
Logic gates - AND, OR, NOT, NOR, NAND, XOR, XNOR Gates.Logic gates - AND, OR, NOT, NOR, NAND, XOR, XNOR Gates.
Logic gates - AND, OR, NOT, NOR, NAND, XOR, XNOR Gates.
 
What is Gray Code?
What is Gray Code? What is Gray Code?
What is Gray Code?
 
Code conversions.pptx415.pptx
Code conversions.pptx415.pptxCode conversions.pptx415.pptx
Code conversions.pptx415.pptx
 
Parity Generator and Parity Checker
Parity Generator and Parity CheckerParity Generator and Parity Checker
Parity Generator and Parity Checker
 
BCD to Decimal - Digital Electronics
BCD to Decimal - Digital ElectronicsBCD to Decimal - Digital Electronics
BCD to Decimal - Digital Electronics
 
Flip flop
Flip flopFlip flop
Flip flop
 
Error detection and correction codes
Error detection and correction codesError detection and correction codes
Error detection and correction codes
 
Number system in Digital Electronics
Number system in Digital ElectronicsNumber system in Digital Electronics
Number system in Digital Electronics
 
Lecture 3
Lecture 3Lecture 3
Lecture 3
 
Combinational Logic Circuit
Combinational Logic CircuitCombinational Logic Circuit
Combinational Logic Circuit
 
3.codes( binary code ,excess 3, gray code )
3.codes( binary code ,excess 3, gray code )3.codes( binary code ,excess 3, gray code )
3.codes( binary code ,excess 3, gray code )
 
Chap ii.BCD code,Gray code
Chap ii.BCD code,Gray codeChap ii.BCD code,Gray code
Chap ii.BCD code,Gray code
 
Number System (Binary,octal,Decimal,Hexadecimal)
Number System (Binary,octal,Decimal,Hexadecimal)Number System (Binary,octal,Decimal,Hexadecimal)
Number System (Binary,octal,Decimal,Hexadecimal)
 
FYBSC IT Digital Electronics Unit II Chapter I Boolean Algebra and Logic Gates
FYBSC IT Digital Electronics Unit II Chapter I Boolean Algebra and Logic GatesFYBSC IT Digital Electronics Unit II Chapter I Boolean Algebra and Logic Gates
FYBSC IT Digital Electronics Unit II Chapter I Boolean Algebra and Logic Gates
 
Boolean algebra simplification and combination circuits
Boolean algebra simplification and combination circuitsBoolean algebra simplification and combination circuits
Boolean algebra simplification and combination circuits
 
BOOLEAN ALGEBRA & LOGIC GATE
BOOLEAN ALGEBRA & LOGIC GATEBOOLEAN ALGEBRA & LOGIC GATE
BOOLEAN ALGEBRA & LOGIC GATE
 
1s and 2s complement
1s and 2s complement1s and 2s complement
1s and 2s complement
 

Similar to Number system

Data representation
Data representationData representation
Data representationManish Kumar
 
Number system and their conversion
Number system and their conversionNumber system and their conversion
Number system and their conversionRam Pratap Singh
 
B sc cs i bo-de u-i number system
B sc cs i bo-de u-i number systemB sc cs i bo-de u-i number system
B sc cs i bo-de u-i number systemRai University
 
Boolean Algebra Arithmetic SIG UNSIGN.ppt
Boolean Algebra  Arithmetic SIG UNSIGN.pptBoolean Algebra  Arithmetic SIG UNSIGN.ppt
Boolean Algebra Arithmetic SIG UNSIGN.pptAshishChandrakar12
 
Computers numbering systems
Computers   numbering systemsComputers   numbering systems
Computers numbering systemssld1950
 
04 chapter03 02_numbers_systems_student_version_fa16
04 chapter03 02_numbers_systems_student_version_fa1604 chapter03 02_numbers_systems_student_version_fa16
04 chapter03 02_numbers_systems_student_version_fa16John Todora
 
Number systems and conversions
Number systems and conversionsNumber systems and conversions
Number systems and conversionsSusantha Herath
 
Chapter_1_Digital_Systems_and_Binary_Numbers2.ppt
Chapter_1_Digital_Systems_and_Binary_Numbers2.pptChapter_1_Digital_Systems_and_Binary_Numbers2.ppt
Chapter_1_Digital_Systems_and_Binary_Numbers2.pptDavid Louie Bedia
 
Number system computer fundamental
 Number  system computer fundamental  Number  system computer fundamental
Number system computer fundamental Aman anand kumar
 
FYBSC IT Digital Electronics Unit I Chapter I Number System and Binary Arithm...
FYBSC IT Digital Electronics Unit I Chapter I Number System and Binary Arithm...FYBSC IT Digital Electronics Unit I Chapter I Number System and Binary Arithm...
FYBSC IT Digital Electronics Unit I Chapter I Number System and Binary Arithm...Arti Parab Academics
 
Digital basics
Digital basicsDigital basics
Digital basicsimran khan
 

Similar to Number system (20)

Data representation
Data representationData representation
Data representation
 
Number Systems - AK.pptx
Number Systems - AK.pptxNumber Systems - AK.pptx
Number Systems - AK.pptx
 
Number system and their conversion
Number system and their conversionNumber system and their conversion
Number system and their conversion
 
Alu1
Alu1Alu1
Alu1
 
Number system
Number systemNumber system
Number system
 
B sc cs i bo-de u-i number system
B sc cs i bo-de u-i number systemB sc cs i bo-de u-i number system
B sc cs i bo-de u-i number system
 
Data representation
Data representationData representation
Data representation
 
Digital Logic
Digital LogicDigital Logic
Digital Logic
 
DCF QNA edited
DCF QNA editedDCF QNA edited
DCF QNA edited
 
Boolean Algebra Arithmetic SIG UNSIGN.ppt
Boolean Algebra  Arithmetic SIG UNSIGN.pptBoolean Algebra  Arithmetic SIG UNSIGN.ppt
Boolean Algebra Arithmetic SIG UNSIGN.ppt
 
Computers numbering systems
Computers   numbering systemsComputers   numbering systems
Computers numbering systems
 
04 chapter03 02_numbers_systems_student_version_fa16
04 chapter03 02_numbers_systems_student_version_fa1604 chapter03 02_numbers_systems_student_version_fa16
04 chapter03 02_numbers_systems_student_version_fa16
 
Okkkkk
OkkkkkOkkkkk
Okkkkk
 
Number systems and conversions
Number systems and conversionsNumber systems and conversions
Number systems and conversions
 
Cit 1101 lec 02
Cit 1101 lec 02Cit 1101 lec 02
Cit 1101 lec 02
 
Chapter_1_Digital_Systems_and_Binary_Numbers2.ppt
Chapter_1_Digital_Systems_and_Binary_Numbers2.pptChapter_1_Digital_Systems_and_Binary_Numbers2.ppt
Chapter_1_Digital_Systems_and_Binary_Numbers2.ppt
 
Number_Systems (2).ppt
Number_Systems (2).pptNumber_Systems (2).ppt
Number_Systems (2).ppt
 
Number system computer fundamental
 Number  system computer fundamental  Number  system computer fundamental
Number system computer fundamental
 
FYBSC IT Digital Electronics Unit I Chapter I Number System and Binary Arithm...
FYBSC IT Digital Electronics Unit I Chapter I Number System and Binary Arithm...FYBSC IT Digital Electronics Unit I Chapter I Number System and Binary Arithm...
FYBSC IT Digital Electronics Unit I Chapter I Number System and Binary Arithm...
 
Digital basics
Digital basicsDigital basics
Digital basics
 

More from GargiKhanna1

Latch & Flip-Flop.pptx
Latch & Flip-Flop.pptxLatch & Flip-Flop.pptx
Latch & Flip-Flop.pptxGargiKhanna1
 
Digital Counter Design
 Digital Counter Design Digital Counter Design
Digital Counter DesignGargiKhanna1
 
Latch and flip flop
Latch and flip flopLatch and flip flop
Latch and flip flopGargiKhanna1
 
Multiplexers and Demultiplexers
Multiplexers and DemultiplexersMultiplexers and Demultiplexers
Multiplexers and DemultiplexersGargiKhanna1
 
Logic Level Techniques for Power Reduction
Logic Level Techniques for Power Reduction Logic Level Techniques for Power Reduction
Logic Level Techniques for Power Reduction GargiKhanna1
 
Architectural Level Techniques
Architectural Level TechniquesArchitectural Level Techniques
Architectural Level TechniquesGargiKhanna1
 
Probabilistic Power Analysis
Probabilistic Power AnalysisProbabilistic Power Analysis
Probabilistic Power AnalysisGargiKhanna1
 
Monte carlo analysis
Monte carlo analysisMonte carlo analysis
Monte carlo analysisGargiKhanna1
 
Simulation power analysis low power vlsi
Simulation power analysis   low power vlsiSimulation power analysis   low power vlsi
Simulation power analysis low power vlsiGargiKhanna1
 
Boolean Function SOP & POS
Boolean Function SOP &  POSBoolean Function SOP &  POS
Boolean Function SOP & POSGargiKhanna1
 

More from GargiKhanna1 (13)

Latch & Flip-Flop.pptx
Latch & Flip-Flop.pptxLatch & Flip-Flop.pptx
Latch & Flip-Flop.pptx
 
MOS logic family
MOS logic familyMOS logic family
MOS logic family
 
Digital Counter Design
 Digital Counter Design Digital Counter Design
Digital Counter Design
 
Latch and flip flop
Latch and flip flopLatch and flip flop
Latch and flip flop
 
Multiplexers and Demultiplexers
Multiplexers and DemultiplexersMultiplexers and Demultiplexers
Multiplexers and Demultiplexers
 
Logic Level Techniques for Power Reduction
Logic Level Techniques for Power Reduction Logic Level Techniques for Power Reduction
Logic Level Techniques for Power Reduction
 
Architectural Level Techniques
Architectural Level TechniquesArchitectural Level Techniques
Architectural Level Techniques
 
Probabilistic Power Analysis
Probabilistic Power AnalysisProbabilistic Power Analysis
Probabilistic Power Analysis
 
Monte carlo analysis
Monte carlo analysisMonte carlo analysis
Monte carlo analysis
 
Simulation power analysis low power vlsi
Simulation power analysis   low power vlsiSimulation power analysis   low power vlsi
Simulation power analysis low power vlsi
 
Boolean Function SOP & POS
Boolean Function SOP &  POSBoolean Function SOP &  POS
Boolean Function SOP & POS
 
Logic gate
Logic gateLogic gate
Logic gate
 
Logic Gates
Logic GatesLogic Gates
Logic Gates
 

Recently uploaded

result management system report for college project
result management system report for college projectresult management system report for college project
result management system report for college projectTonystark477637
 
Double rodded leveling 1 pdf activity 01
Double rodded leveling 1 pdf activity 01Double rodded leveling 1 pdf activity 01
Double rodded leveling 1 pdf activity 01KreezheaRecto
 
UNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its PerformanceUNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its Performancesivaprakash250
 
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...Christo Ananth
 
Call Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance BookingCall Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance Bookingroncy bisnoi
 
data_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdfdata_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdfJiananWang21
 
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...Call Girls in Nagpur High Profile
 
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete RecordCCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete RecordAsst.prof M.Gokilavani
 
Intze Overhead Water Tank Design by Working Stress - IS Method.pdf
Intze Overhead Water Tank  Design by Working Stress - IS Method.pdfIntze Overhead Water Tank  Design by Working Stress - IS Method.pdf
Intze Overhead Water Tank Design by Working Stress - IS Method.pdfSuman Jyoti
 
Vivazz, Mieres Social Housing Design Spain
Vivazz, Mieres Social Housing Design SpainVivazz, Mieres Social Housing Design Spain
Vivazz, Mieres Social Housing Design Spaintimesproduction05
 
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...ranjana rawat
 
Booking open Available Pune Call Girls Pargaon 6297143586 Call Hot Indian Gi...
Booking open Available Pune Call Girls Pargaon  6297143586 Call Hot Indian Gi...Booking open Available Pune Call Girls Pargaon  6297143586 Call Hot Indian Gi...
Booking open Available Pune Call Girls Pargaon 6297143586 Call Hot Indian Gi...Call Girls in Nagpur High Profile
 
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...Call Girls in Nagpur High Profile
 
Extrusion Processes and Their Limitations
Extrusion Processes and Their LimitationsExtrusion Processes and Their Limitations
Extrusion Processes and Their Limitations120cr0395
 
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...Dr.Costas Sachpazis
 
Generative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPTGenerative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPTbhaskargani46
 
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...roncy bisnoi
 

Recently uploaded (20)

result management system report for college project
result management system report for college projectresult management system report for college project
result management system report for college project
 
(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7
(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7
(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7
 
Double rodded leveling 1 pdf activity 01
Double rodded leveling 1 pdf activity 01Double rodded leveling 1 pdf activity 01
Double rodded leveling 1 pdf activity 01
 
UNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its PerformanceUNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its Performance
 
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
 
Call Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance BookingCall Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance Booking
 
data_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdfdata_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdf
 
Roadmap to Membership of RICS - Pathways and Routes
Roadmap to Membership of RICS - Pathways and RoutesRoadmap to Membership of RICS - Pathways and Routes
Roadmap to Membership of RICS - Pathways and Routes
 
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
 
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete RecordCCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
 
Intze Overhead Water Tank Design by Working Stress - IS Method.pdf
Intze Overhead Water Tank  Design by Working Stress - IS Method.pdfIntze Overhead Water Tank  Design by Working Stress - IS Method.pdf
Intze Overhead Water Tank Design by Working Stress - IS Method.pdf
 
Vivazz, Mieres Social Housing Design Spain
Vivazz, Mieres Social Housing Design SpainVivazz, Mieres Social Housing Design Spain
Vivazz, Mieres Social Housing Design Spain
 
(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7
(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7
(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7
 
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
 
Booking open Available Pune Call Girls Pargaon 6297143586 Call Hot Indian Gi...
Booking open Available Pune Call Girls Pargaon  6297143586 Call Hot Indian Gi...Booking open Available Pune Call Girls Pargaon  6297143586 Call Hot Indian Gi...
Booking open Available Pune Call Girls Pargaon 6297143586 Call Hot Indian Gi...
 
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
 
Extrusion Processes and Their Limitations
Extrusion Processes and Their LimitationsExtrusion Processes and Their Limitations
Extrusion Processes and Their Limitations
 
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
 
Generative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPTGenerative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPT
 
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
 

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 x x x x x x x x 20 21 22 23 24 25 26 27 128 + 32 + 8 + 4 +2+1 Products 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 x x x 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 x x x 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