SlideShare a Scribd company logo
Dr.M.Pyingkodi
AP/MCA
Kongu Engineering College
Erode, Tamilnadu
Number Systems in Digital
Principles
Number Systems
Computers only understand the numbers.
How Number system works?
when we enter data, the data is converted into
electronic pulse.
Each pulse is identified as code and the code is
converted into numeric format by ASCII.
It gives each number, character and symbol a
numeric value (number) that a computer
understands.
Number Systems
• Binary number system
• Octal number system
• Decimal number system
• Hexadecimal number system
Binary number system
It has only two digits '0' and '1'
so its base is 2.
Each digit is called a bit.
A group of four bits (1101) is called a nibble
A group of eight bits (11001010) is called a byte.
Number Systems - Types
• The digit value in the number system is calculated
using
– The digit
– The index, where the digit is present in the number.
– Finally, the base numbers, the total number of digits
available in the number system
When the number system represents a digit from 0 - 9,
the base of the number will be 10.
Number Systems
a binary number system is used in the digital computers.
In this number system, it carries only two digits, either 0
or 1.
There are two types of electronic pulses present in a
binary number system.
The first one is the absence of an electronic pulse
representing '0‘
The second one is the presence of electronic pulse
representing '1'.
Each digit is known as a bit.
The location of a digit in a binary number represents a
specific power of the base (2) of the number system.
Number Systems -Binary
• It holds only two values, i.e., either 0 or 1.
• It is also known as the base 2 number system.
• The position of a digit represents the 0 power of the
base(2). Example: 20
• The position of the last digit represents the x power
of the base(2). Example: 2x, where x represents the
last position, i.e., 1
• Each successive digit represents a power of 2.
Examples:
(10100)2, (11011)2, (11001)2, (000101)2,
(011010)2.
Number Systems -Characteristics
Each successive digit represents a power of 2.
For example,
1) 10011
= (1 X 24) + (0 X 23) + (0 X 22) + (1 X 21) + (1 X 20),
= 16 + 0 + 0 + 2 + 1
= 19
2) 1001
= (1 X 23) + (0 X 22) + (0 X 21) + (1 X 20),
= 1x 8 + 0x 4 + 0 x2 + 1 x 1
= 8 + 0+ 0+ 1
= 9
Number Systems -Binary
The decimal number system contains ten digits from 0 to
9(base 10).
The successive place value or position, left to the
decimal point holds units, tens, hundreds, thousands,
and so on
The position in the decimal number system specifies the
power of the base (10).
2541 consist of the digit
1 in the unit position,
4 in the tens position,
5 in the hundreds position,
and 2 in the thousand positions
Number Systems - Decimal
Example: 2541
(2×1000) + (5×100) + (4×10) + (1×1)
(2×103) + (5×102) + (4×101) + (1×100)
2000 + 500 + 40 + 1 2541
Number Systems - Decimal
The octal number system has base 8
it has only eight digits from 0 to 7
There are only eight possible digit values to represent a
number.
With the help of only three bits, an octal number is
represented.
Each set of bits has a distinct value between 0 and 7.
Number Systems - Octal
Characteristics:
• An octal number system carries eight digits
starting from 0, 1, 2, 3, 4, 5, 6, and 7.
• It is also known as the base 8 number system.
• The position of a digit represents the 0 power of
the base(8). Example: 80
• The position of the last digit represents the x
power of the base(8). Example: 8x, where x
represents the last position, i.e., 1
• any number with base 8 is an octal number like
248, 1098, 558, etc.
Number Systems - Octal
Octal Digital Value Binary Equivalent
0 000
1 001
2 010
3 011
4 100
5 101
6 110
7 111
Number Systems - Octal
Convert (100010)2 to octal number
100010
100→4
and 010→2
Therefore,(100010)2 = 428
decimal number to octal
19
19/8 = 2, Remainder = 3
2/8 = 0, Remainder = 2
Therefore, 1910 = 238
For octal number 138 to binary
1 → 001
3 → 011
138 = 0010112
Number Systems - Octal
Binary number 1111 equivalent to in octal number system
001111 → 001 111 → 17
(1111)2 → (17)8
Convert (100010)2 to octal number.
100→4
and 010→2
(100010)2 = 42
Octal to Decimal Number
1) 2158
2158 = 2 × 82 + 1 × 81 + 5 × 80
= 2 × 64+ 1 × 8 + 5 × 1 = 128 + 8 + 5
= 141
2) 1258 = 1× 82 + 2 × 81 + 5 × 80
= 1 × 64 + 2 × 8 + 5 × 1 = 64+16+5
= 85
Number Systems -Octal
Number Representation techniques
base is 16
there are only 16 symbols or possible digit values, there
are 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, A, B, C, D, E, F.
Where A, B, C, D, E and F are single bit representations
of decimal value 10, 11, 12, 13, 14 and 15 respectively.
It requires only 4 bits to represent value of any digit.
Applications Hexadecimal Number System is
commonly used in Computer programming and
Microprocessors.
Hexadecimal Number System is commonly used in
Computer programming and Microprocessors.
Number Systems - Hexadecimal
The equivalent binary number of Hexadecimal number
are as given below.
Number Systems - Hexadecimal
Hex digit 8 9 A = 10 B = 11 C = 12 D = 13 E = 14 F = 15
Binary 1000 1001 1010 1011 1100 1101 1110 1111
Hex digit 1 0 2 3 4 5 6 7
Binary 0000 0001 0010 0011 0100 0101 0110 0111
The decimal value of any hexadecimal number can be determined using sum of
product of each digit with its positional value.
1) Hexa Decimal to Decimal
(200)16
= 2x162+ 0x161+ 0x160
= 2*256 + 0+ 0
=(512)10
2) Hexa Decimal number- (15)16
= 1x161+5x160
16 + 5 =(21)10
3) (A0)16
= A x 161 + 0 x 10
= 10 x 16 + 0x 1
=160
Number Systems - Hexadecimal
1) 1128
Start by dividing the number by 16, that is
(1128/16) = Result = 70 Remainder =8
(70/16) = Result = 4 Remainder = 6
4 / 16 = Result = 0 Remainder = 4
= (468)16
2) 256
Start by dividing the number by 16, that is
256 / 16 = Result = 16 Remainder =0
16 / 16 = Result = 1 Remainder =0
1 / 16 = Result = 0 Remainder =1
= (100)16
CONVERTING DECIMAL TO HEXADECIMAL
1) 188
Start by dividing the number by 16, that is
(188 / 16) = Result = 11 Remainder = 12 (C)
11 / 16 = Result = 0 Remainder = 11(B)
= (BC)16
2) 590
Start by dividing the number by 16, that is
590 / 16= Result = 36 Remainder = 14(E)
36 / 16 = Result = 2 Remainder =4
2 / 16 = Result = 0 Remainder =2
= (24E)16
CONVERTING DECIMAL TO HEXADECIMAL
(F8)16
F = 1111
8 = 1000
= (11111000)2
2) (1A) 16
1 = 0001
A = 1010
= (00011010)2
Convert Hexadecimal number to Binary
Hexadecimal to Octal Number System Conversion
Hexa
decim
al
0 1 2 3 4 5 6 7 8 9 A B C D E F
Octal 0 1 2 3 4 5 6 7 10 11 12 13 14 15 16 17
we have to first convert octal number to decimal and
then decimal to hexadecimal.
Convert (121)8 into hexadecimal.
Solution: First convert 121 into decimal number.
⇒ 1 × 82 + 2 × 81 + 1 × 80
⇒ 1 × 64 + 2 × 8 + 1 × 1
⇒ 64 + 16 + 1
⇒ 81 => (121)8 = 8110
81/16 = Result = 5 Remainder = 1
5/16 = Result = 0 Remainder = 5
= (51)16
Octal to Hexadecimal Number System Conversion
Convert Hexadecimal number to Binary
HEX DECIMAL BINARY
0 0 = 0+0+0+0 0000
1 1 = 0+0+0+1 0001
2 2 = 0+0+2+0 0010
3 3 = 0+0+2+1 0011
4 4 = 0+4+0+0 0100
5 5 = 0+4+0+1 0101
6 6 = 0+4+2+0 0110
7 7 = 0+4+2+1 0111
8 8 = 8+0+0+0 1000
9 9 = 8+0+0+1 1001
A 10 = 8+0+2+0 1010
B 11 = 8+0+2+1 1011
C 12 = 8+4+0+0 1100
D 13 = 8+4+0+1 1101
E 14 = 8+4+2+0 1110
F 15 = 8+4+2+1 1111
1) Convert 17410 to binary
17410 = 101011102
Convert Decimal number to Binary
Division
by 2
Quotient(Result) Remainder Bit #
174/2 87 0 0
87/2 43 1 1
43/2 21 1 2
21/2 10 1 3
10/2 5 0 4
5/2 2 1 5
2/2 1 0 6
1/2 0 1 7
2) Convert 1310 to binary:
1310 = 11012
Convert Decimal number to Binary
Division
by 2
Quotient(Result) Remainder Bit #
13/2 6 1 0
6/2 3 0 1
3/2 1 1 2
1/2 0 1 3
3)
3.1
125 into octal number.
First convert it into octal or hexadecimal number
(125)10
= 125/8 Result : 15 Reminder : 5
=15/8 Result: 1 Reminder :7
= 1/8 Result : 0 Reminder :1
= (175)8
Then convert it into binary number by converting each digit.
(001 111 101)2
3.2
= 125/16 Result : 7 Reminder : 13 – (D)
[13 equivalent hexa value is D)
= 7/16 Result : 0 Reminder : 7
= 7D
= 0111 1101
Convert Decimal number to Binary

More Related Content

What's hot

Number system
Number systemNumber system
Number systemkashee99
 
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
 
Number system
Number systemNumber system
Number system
Sajib
 
Number system.pdf
Number system.pdfNumber system.pdf
Number system.pdf
DeepuGuna
 
Number system
Number systemNumber system
Number system
Suraj Bora
 
Floating point presentation
Floating point presentationFloating point presentation
Floating point presentation
SnehalataAgasti
 
Number System
Number SystemNumber System
Number System
Web Designer
 
Number System
Number SystemNumber System
Number System
Zahid Rajeel
 
Complements of numbers
Complements of numbersComplements of numbers
Complements of numbers
Kiriti Varkur
 
Number system in Digital Electronics
Number system in Digital ElectronicsNumber system in Digital Electronics
Number system in Digital Electronics
Janki Shah
 
Hexadecimal to octal conversion
Hexadecimal to octal conversionHexadecimal to octal conversion
Hexadecimal to octal conversion
Mukesh Tekwani
 
Chapter 1: Binary System
 Chapter 1: Binary System Chapter 1: Binary System
Chapter 1: Binary System
Er. Nawaraj Bhandari
 
Number system....
Number system....Number system....
Number system....mshoaib15
 
Binary computing
Binary computingBinary computing
Binary computing
samina khan
 
Lecture-2(2): Number System & Conversion
Lecture-2(2): Number System & ConversionLecture-2(2): Number System & Conversion
Lecture-2(2): Number System & Conversion
Mubashir Ali
 

What's hot (20)

Number system
Number systemNumber system
Number system
 
Number System (Binary,octal,Decimal,Hexadecimal)
Number System (Binary,octal,Decimal,Hexadecimal)Number System (Binary,octal,Decimal,Hexadecimal)
Number System (Binary,octal,Decimal,Hexadecimal)
 
Number system
Number systemNumber system
Number system
 
Binary true ppt
Binary true pptBinary true ppt
Binary true ppt
 
Number system.pdf
Number system.pdfNumber system.pdf
Number system.pdf
 
Number system
Number systemNumber system
Number system
 
Floating point presentation
Floating point presentationFloating point presentation
Floating point presentation
 
Number System
Number SystemNumber System
Number System
 
Slide03 Number System and Operations Part 1
Slide03 Number System and Operations Part 1Slide03 Number System and Operations Part 1
Slide03 Number System and Operations Part 1
 
Number System
Number SystemNumber System
Number System
 
Complements of numbers
Complements of numbersComplements of numbers
Complements of numbers
 
Number system conversion
Number system conversionNumber system conversion
Number system conversion
 
Number system in Digital Electronics
Number system in Digital ElectronicsNumber system in Digital Electronics
Number system in Digital Electronics
 
Binary arithmetic
Binary arithmeticBinary arithmetic
Binary arithmetic
 
Hexadecimal to octal conversion
Hexadecimal to octal conversionHexadecimal to octal conversion
Hexadecimal to octal conversion
 
Chapter 1: Binary System
 Chapter 1: Binary System Chapter 1: Binary System
Chapter 1: Binary System
 
Number system....
Number system....Number system....
Number system....
 
Binary computing
Binary computingBinary computing
Binary computing
 
Lecture-2(2): Number System & Conversion
Lecture-2(2): Number System & ConversionLecture-2(2): Number System & Conversion
Lecture-2(2): Number System & Conversion
 
Number System
Number SystemNumber System
Number System
 

Similar to Number systems

Computer Number system
Computer Number systemComputer Number system
Computer Number system
Anil Kumar Prajapati
 
numbersystem-211022083557.pdf
numbersystem-211022083557.pdfnumbersystem-211022083557.pdf
numbersystem-211022083557.pdf
AsthaChaurasia4
 
Number System.pptx
Number System.pptxNumber System.pptx
Number System.pptx
Lovely Professional University
 
Chapter two FHI.pptx
Chapter two FHI.pptxChapter two FHI.pptx
Chapter two FHI.pptx
ODAATUBE1
 
Number system and their conversion
Number system and their conversionNumber system and their conversion
Number system and their conversion
Ram Pratap Singh
 
Chapter 3.pptx
Chapter 3.pptxChapter 3.pptx
Chapter 3.pptx
Wollo UNiversity
 
Number systems
Number systemsNumber systems
Number systems
thechamp3
 
21EC201– Digital Principles and system design.pptx
21EC201– Digital Principles and system design.pptx21EC201– Digital Principles and system design.pptx
21EC201– Digital Principles and system design.pptx
GobinathAECEJRF1101
 
Number systems and conversions
Number systems and conversionsNumber systems and conversions
Number systems and conversions
Susantha Herath
 
Digital Electronics Notes.pdf
Digital Electronics Notes.pdfDigital Electronics Notes.pdf
Digital Electronics Notes.pdf
4NM21IS132SAISHARATH
 
module 3,Boolean algebra and logic circuits .pptx
module 3,Boolean algebra and logic circuits .pptxmodule 3,Boolean algebra and logic circuits .pptx
module 3,Boolean algebra and logic circuits .pptx
keemjupiter
 
Grade5(Test 2).pptx
Grade5(Test 2).pptxGrade5(Test 2).pptx
Grade5(Test 2).pptx
MjMj96
 
Number_Systems (2).ppt
Number_Systems (2).pptNumber_Systems (2).ppt
Number_Systems (2).ppt
nivedita murugan
 
Data representation
Data representationData representation
Data representation
vikram mahendra
 
Number system by ammar nawab
Number system by ammar nawabNumber system by ammar nawab
Number system by ammar nawab
Ammar_n
 
Basic of number system
Basic of number systemBasic of number system
Basic of number system
Akhilesh Maithani
 
Number system
Number system Number system
Number system
BPGCW
 

Similar to Number systems (20)

Computer Number system
Computer Number systemComputer Number system
Computer Number system
 
numbersystem-211022083557.pdf
numbersystem-211022083557.pdfnumbersystem-211022083557.pdf
numbersystem-211022083557.pdf
 
Number System.pptx
Number System.pptxNumber System.pptx
Number System.pptx
 
Chapter two FHI.pptx
Chapter two FHI.pptxChapter two FHI.pptx
Chapter two FHI.pptx
 
Number system and their conversion
Number system and their conversionNumber system and their conversion
Number system and their conversion
 
Chapter 3.pptx
Chapter 3.pptxChapter 3.pptx
Chapter 3.pptx
 
Number systems
Number systemsNumber systems
Number systems
 
W 9 numbering system
W 9 numbering systemW 9 numbering system
W 9 numbering system
 
W 9 numbering system
W 9 numbering systemW 9 numbering system
W 9 numbering system
 
21EC201– Digital Principles and system design.pptx
21EC201– Digital Principles and system design.pptx21EC201– Digital Principles and system design.pptx
21EC201– Digital Principles and system design.pptx
 
Number systems and conversions
Number systems and conversionsNumber systems and conversions
Number systems and conversions
 
Digital Electronics Notes.pdf
Digital Electronics Notes.pdfDigital Electronics Notes.pdf
Digital Electronics Notes.pdf
 
Lec 02
Lec 02Lec 02
Lec 02
 
module 3,Boolean algebra and logic circuits .pptx
module 3,Boolean algebra and logic circuits .pptxmodule 3,Boolean algebra and logic circuits .pptx
module 3,Boolean algebra and logic circuits .pptx
 
Grade5(Test 2).pptx
Grade5(Test 2).pptxGrade5(Test 2).pptx
Grade5(Test 2).pptx
 
Number_Systems (2).ppt
Number_Systems (2).pptNumber_Systems (2).ppt
Number_Systems (2).ppt
 
Data representation
Data representationData representation
Data representation
 
Number system by ammar nawab
Number system by ammar nawabNumber system by ammar nawab
Number system by ammar nawab
 
Basic of number system
Basic of number systemBasic of number system
Basic of number system
 
Number system
Number system Number system
Number system
 

More from pyingkodi maran

Signed Binary Numbers
Signed Binary NumbersSigned Binary Numbers
Signed Binary Numbers
pyingkodi maran
 
Essential concepts for machine learning
Essential concepts for machine learning Essential concepts for machine learning
Essential concepts for machine learning
pyingkodi maran
 
Sub Queries in oracle
Sub Queries in oracleSub Queries in oracle
Sub Queries in oracle
pyingkodi maran
 
Dbms keys
Dbms keysDbms keys
Dbms keys
pyingkodi maran
 
Android sensor
Android sensorAndroid sensor
Android sensor
pyingkodi maran
 
Data preprocessing in Machine learning
Data preprocessing in Machine learning Data preprocessing in Machine learning
Data preprocessing in Machine learning
pyingkodi maran
 
Introduction to Android Programming by Dr.M.Pyingkodi-kongu engineering c...
Introduction to  Android   Programming by  Dr.M.Pyingkodi-kongu engineering c...Introduction to  Android   Programming by  Dr.M.Pyingkodi-kongu engineering c...
Introduction to Android Programming by Dr.M.Pyingkodi-kongu engineering c...
pyingkodi maran
 
Php mail program
Php mail programPhp mail program
Php mail program
pyingkodi maran
 
Simple PHP programs by kongu Engineering College
Simple  PHP programs by  kongu  Engineering CollegeSimple  PHP programs by  kongu  Engineering College
Simple PHP programs by kongu Engineering College
pyingkodi maran
 

More from pyingkodi maran (9)

Signed Binary Numbers
Signed Binary NumbersSigned Binary Numbers
Signed Binary Numbers
 
Essential concepts for machine learning
Essential concepts for machine learning Essential concepts for machine learning
Essential concepts for machine learning
 
Sub Queries in oracle
Sub Queries in oracleSub Queries in oracle
Sub Queries in oracle
 
Dbms keys
Dbms keysDbms keys
Dbms keys
 
Android sensor
Android sensorAndroid sensor
Android sensor
 
Data preprocessing in Machine learning
Data preprocessing in Machine learning Data preprocessing in Machine learning
Data preprocessing in Machine learning
 
Introduction to Android Programming by Dr.M.Pyingkodi-kongu engineering c...
Introduction to  Android   Programming by  Dr.M.Pyingkodi-kongu engineering c...Introduction to  Android   Programming by  Dr.M.Pyingkodi-kongu engineering c...
Introduction to Android Programming by Dr.M.Pyingkodi-kongu engineering c...
 
Php mail program
Php mail programPhp mail program
Php mail program
 
Simple PHP programs by kongu Engineering College
Simple  PHP programs by  kongu  Engineering CollegeSimple  PHP programs by  kongu  Engineering College
Simple PHP programs by kongu Engineering College
 

Recently uploaded

ASME IX(9) 2007 Full Version .pdf
ASME IX(9)  2007 Full Version       .pdfASME IX(9)  2007 Full Version       .pdf
ASME IX(9) 2007 Full Version .pdf
AhmedHussein950959
 
Immunizing Image Classifiers Against Localized Adversary Attacks
Immunizing Image Classifiers Against Localized Adversary AttacksImmunizing Image Classifiers Against Localized Adversary Attacks
Immunizing Image Classifiers Against Localized Adversary Attacks
gerogepatton
 
CME397 Surface Engineering- Professional Elective
CME397 Surface Engineering- Professional ElectiveCME397 Surface Engineering- Professional Elective
CME397 Surface Engineering- Professional Elective
karthi keyan
 
The Benefits and Techniques of Trenchless Pipe Repair.pdf
The Benefits and Techniques of Trenchless Pipe Repair.pdfThe Benefits and Techniques of Trenchless Pipe Repair.pdf
The Benefits and Techniques of Trenchless Pipe Repair.pdf
Pipe Restoration Solutions
 
Railway Signalling Principles Edition 3.pdf
Railway Signalling Principles Edition 3.pdfRailway Signalling Principles Edition 3.pdf
Railway Signalling Principles Edition 3.pdf
TeeVichai
 
Democratizing Fuzzing at Scale by Abhishek Arya
Democratizing Fuzzing at Scale by Abhishek AryaDemocratizing Fuzzing at Scale by Abhishek Arya
Democratizing Fuzzing at Scale by Abhishek Arya
abh.arya
 
WATER CRISIS and its solutions-pptx 1234
WATER CRISIS and its solutions-pptx 1234WATER CRISIS and its solutions-pptx 1234
WATER CRISIS and its solutions-pptx 1234
AafreenAbuthahir2
 
DESIGN A COTTON SEED SEPARATION MACHINE.docx
DESIGN A COTTON SEED SEPARATION MACHINE.docxDESIGN A COTTON SEED SEPARATION MACHINE.docx
DESIGN A COTTON SEED SEPARATION MACHINE.docx
FluxPrime1
 
一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
bakpo1
 
Standard Reomte Control Interface - Neometrix
Standard Reomte Control Interface - NeometrixStandard Reomte Control Interface - Neometrix
Standard Reomte Control Interface - Neometrix
Neometrix_Engineering_Pvt_Ltd
 
Water Industry Process Automation and Control Monthly - May 2024.pdf
Water Industry Process Automation and Control Monthly - May 2024.pdfWater Industry Process Automation and Control Monthly - May 2024.pdf
Water Industry Process Automation and Control Monthly - May 2024.pdf
Water Industry Process Automation & Control
 
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdfHybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
fxintegritypublishin
 
road safety engineering r s e unit 3.pdf
road safety engineering  r s e unit 3.pdfroad safety engineering  r s e unit 3.pdf
road safety engineering r s e unit 3.pdf
VENKATESHvenky89705
 
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
Dr.Costas Sachpazis
 
在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样
在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样
在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样
obonagu
 
Automobile Management System Project Report.pdf
Automobile Management System Project Report.pdfAutomobile Management System Project Report.pdf
Automobile Management System Project Report.pdf
Kamal Acharya
 
block diagram and signal flow graph representation
block diagram and signal flow graph representationblock diagram and signal flow graph representation
block diagram and signal flow graph representation
Divya Somashekar
 
COLLEGE BUS MANAGEMENT SYSTEM PROJECT REPORT.pdf
COLLEGE BUS MANAGEMENT SYSTEM PROJECT REPORT.pdfCOLLEGE BUS MANAGEMENT SYSTEM PROJECT REPORT.pdf
COLLEGE BUS MANAGEMENT SYSTEM PROJECT REPORT.pdf
Kamal Acharya
 
Forklift Classes Overview by Intella Parts
Forklift Classes Overview by Intella PartsForklift Classes Overview by Intella Parts
Forklift Classes Overview by Intella Parts
Intella Parts
 
weather web application report.pdf
weather web application report.pdfweather web application report.pdf
weather web application report.pdf
Pratik Pawar
 

Recently uploaded (20)

ASME IX(9) 2007 Full Version .pdf
ASME IX(9)  2007 Full Version       .pdfASME IX(9)  2007 Full Version       .pdf
ASME IX(9) 2007 Full Version .pdf
 
Immunizing Image Classifiers Against Localized Adversary Attacks
Immunizing Image Classifiers Against Localized Adversary AttacksImmunizing Image Classifiers Against Localized Adversary Attacks
Immunizing Image Classifiers Against Localized Adversary Attacks
 
CME397 Surface Engineering- Professional Elective
CME397 Surface Engineering- Professional ElectiveCME397 Surface Engineering- Professional Elective
CME397 Surface Engineering- Professional Elective
 
The Benefits and Techniques of Trenchless Pipe Repair.pdf
The Benefits and Techniques of Trenchless Pipe Repair.pdfThe Benefits and Techniques of Trenchless Pipe Repair.pdf
The Benefits and Techniques of Trenchless Pipe Repair.pdf
 
Railway Signalling Principles Edition 3.pdf
Railway Signalling Principles Edition 3.pdfRailway Signalling Principles Edition 3.pdf
Railway Signalling Principles Edition 3.pdf
 
Democratizing Fuzzing at Scale by Abhishek Arya
Democratizing Fuzzing at Scale by Abhishek AryaDemocratizing Fuzzing at Scale by Abhishek Arya
Democratizing Fuzzing at Scale by Abhishek Arya
 
WATER CRISIS and its solutions-pptx 1234
WATER CRISIS and its solutions-pptx 1234WATER CRISIS and its solutions-pptx 1234
WATER CRISIS and its solutions-pptx 1234
 
DESIGN A COTTON SEED SEPARATION MACHINE.docx
DESIGN A COTTON SEED SEPARATION MACHINE.docxDESIGN A COTTON SEED SEPARATION MACHINE.docx
DESIGN A COTTON SEED SEPARATION MACHINE.docx
 
一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
 
Standard Reomte Control Interface - Neometrix
Standard Reomte Control Interface - NeometrixStandard Reomte Control Interface - Neometrix
Standard Reomte Control Interface - Neometrix
 
Water Industry Process Automation and Control Monthly - May 2024.pdf
Water Industry Process Automation and Control Monthly - May 2024.pdfWater Industry Process Automation and Control Monthly - May 2024.pdf
Water Industry Process Automation and Control Monthly - May 2024.pdf
 
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdfHybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
 
road safety engineering r s e unit 3.pdf
road safety engineering  r s e unit 3.pdfroad safety engineering  r s e unit 3.pdf
road safety engineering r s e unit 3.pdf
 
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
 
在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样
在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样
在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样
 
Automobile Management System Project Report.pdf
Automobile Management System Project Report.pdfAutomobile Management System Project Report.pdf
Automobile Management System Project Report.pdf
 
block diagram and signal flow graph representation
block diagram and signal flow graph representationblock diagram and signal flow graph representation
block diagram and signal flow graph representation
 
COLLEGE BUS MANAGEMENT SYSTEM PROJECT REPORT.pdf
COLLEGE BUS MANAGEMENT SYSTEM PROJECT REPORT.pdfCOLLEGE BUS MANAGEMENT SYSTEM PROJECT REPORT.pdf
COLLEGE BUS MANAGEMENT SYSTEM PROJECT REPORT.pdf
 
Forklift Classes Overview by Intella Parts
Forklift Classes Overview by Intella PartsForklift Classes Overview by Intella Parts
Forklift Classes Overview by Intella Parts
 
weather web application report.pdf
weather web application report.pdfweather web application report.pdf
weather web application report.pdf
 

Number systems

  • 1. Dr.M.Pyingkodi AP/MCA Kongu Engineering College Erode, Tamilnadu Number Systems in Digital Principles
  • 3. Computers only understand the numbers. How Number system works? when we enter data, the data is converted into electronic pulse. Each pulse is identified as code and the code is converted into numeric format by ASCII. It gives each number, character and symbol a numeric value (number) that a computer understands. Number Systems
  • 4. • Binary number system • Octal number system • Decimal number system • Hexadecimal number system Binary number system It has only two digits '0' and '1' so its base is 2. Each digit is called a bit. A group of four bits (1101) is called a nibble A group of eight bits (11001010) is called a byte. Number Systems - Types
  • 5. • The digit value in the number system is calculated using – The digit – The index, where the digit is present in the number. – Finally, the base numbers, the total number of digits available in the number system When the number system represents a digit from 0 - 9, the base of the number will be 10. Number Systems
  • 6. a binary number system is used in the digital computers. In this number system, it carries only two digits, either 0 or 1. There are two types of electronic pulses present in a binary number system. The first one is the absence of an electronic pulse representing '0‘ The second one is the presence of electronic pulse representing '1'. Each digit is known as a bit. The location of a digit in a binary number represents a specific power of the base (2) of the number system. Number Systems -Binary
  • 7. • It holds only two values, i.e., either 0 or 1. • It is also known as the base 2 number system. • The position of a digit represents the 0 power of the base(2). Example: 20 • The position of the last digit represents the x power of the base(2). Example: 2x, where x represents the last position, i.e., 1 • Each successive digit represents a power of 2. Examples: (10100)2, (11011)2, (11001)2, (000101)2, (011010)2. Number Systems -Characteristics
  • 8. Each successive digit represents a power of 2. For example, 1) 10011 = (1 X 24) + (0 X 23) + (0 X 22) + (1 X 21) + (1 X 20), = 16 + 0 + 0 + 2 + 1 = 19 2) 1001 = (1 X 23) + (0 X 22) + (0 X 21) + (1 X 20), = 1x 8 + 0x 4 + 0 x2 + 1 x 1 = 8 + 0+ 0+ 1 = 9 Number Systems -Binary
  • 9. The decimal number system contains ten digits from 0 to 9(base 10). The successive place value or position, left to the decimal point holds units, tens, hundreds, thousands, and so on The position in the decimal number system specifies the power of the base (10). 2541 consist of the digit 1 in the unit position, 4 in the tens position, 5 in the hundreds position, and 2 in the thousand positions Number Systems - Decimal
  • 10. Example: 2541 (2×1000) + (5×100) + (4×10) + (1×1) (2×103) + (5×102) + (4×101) + (1×100) 2000 + 500 + 40 + 1 2541 Number Systems - Decimal
  • 11. The octal number system has base 8 it has only eight digits from 0 to 7 There are only eight possible digit values to represent a number. With the help of only three bits, an octal number is represented. Each set of bits has a distinct value between 0 and 7. Number Systems - Octal
  • 12. Characteristics: • An octal number system carries eight digits starting from 0, 1, 2, 3, 4, 5, 6, and 7. • It is also known as the base 8 number system. • The position of a digit represents the 0 power of the base(8). Example: 80 • The position of the last digit represents the x power of the base(8). Example: 8x, where x represents the last position, i.e., 1 • any number with base 8 is an octal number like 248, 1098, 558, etc. Number Systems - Octal
  • 13. Octal Digital Value Binary Equivalent 0 000 1 001 2 010 3 011 4 100 5 101 6 110 7 111 Number Systems - Octal
  • 14. Convert (100010)2 to octal number 100010 100→4 and 010→2 Therefore,(100010)2 = 428 decimal number to octal 19 19/8 = 2, Remainder = 3 2/8 = 0, Remainder = 2 Therefore, 1910 = 238 For octal number 138 to binary 1 → 001 3 → 011 138 = 0010112 Number Systems - Octal
  • 15. Binary number 1111 equivalent to in octal number system 001111 → 001 111 → 17 (1111)2 → (17)8 Convert (100010)2 to octal number. 100→4 and 010→2 (100010)2 = 42 Octal to Decimal Number 1) 2158 2158 = 2 × 82 + 1 × 81 + 5 × 80 = 2 × 64+ 1 × 8 + 5 × 1 = 128 + 8 + 5 = 141 2) 1258 = 1× 82 + 2 × 81 + 5 × 80 = 1 × 64 + 2 × 8 + 5 × 1 = 64+16+5 = 85 Number Systems -Octal
  • 16. Number Representation techniques base is 16 there are only 16 symbols or possible digit values, there are 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, A, B, C, D, E, F. Where A, B, C, D, E and F are single bit representations of decimal value 10, 11, 12, 13, 14 and 15 respectively. It requires only 4 bits to represent value of any digit. Applications Hexadecimal Number System is commonly used in Computer programming and Microprocessors. Hexadecimal Number System is commonly used in Computer programming and Microprocessors. Number Systems - Hexadecimal
  • 17. The equivalent binary number of Hexadecimal number are as given below. Number Systems - Hexadecimal Hex digit 8 9 A = 10 B = 11 C = 12 D = 13 E = 14 F = 15 Binary 1000 1001 1010 1011 1100 1101 1110 1111 Hex digit 1 0 2 3 4 5 6 7 Binary 0000 0001 0010 0011 0100 0101 0110 0111
  • 18. The decimal value of any hexadecimal number can be determined using sum of product of each digit with its positional value. 1) Hexa Decimal to Decimal (200)16 = 2x162+ 0x161+ 0x160 = 2*256 + 0+ 0 =(512)10 2) Hexa Decimal number- (15)16 = 1x161+5x160 16 + 5 =(21)10 3) (A0)16 = A x 161 + 0 x 10 = 10 x 16 + 0x 1 =160 Number Systems - Hexadecimal
  • 19. 1) 1128 Start by dividing the number by 16, that is (1128/16) = Result = 70 Remainder =8 (70/16) = Result = 4 Remainder = 6 4 / 16 = Result = 0 Remainder = 4 = (468)16 2) 256 Start by dividing the number by 16, that is 256 / 16 = Result = 16 Remainder =0 16 / 16 = Result = 1 Remainder =0 1 / 16 = Result = 0 Remainder =1 = (100)16 CONVERTING DECIMAL TO HEXADECIMAL
  • 20. 1) 188 Start by dividing the number by 16, that is (188 / 16) = Result = 11 Remainder = 12 (C) 11 / 16 = Result = 0 Remainder = 11(B) = (BC)16 2) 590 Start by dividing the number by 16, that is 590 / 16= Result = 36 Remainder = 14(E) 36 / 16 = Result = 2 Remainder =4 2 / 16 = Result = 0 Remainder =2 = (24E)16 CONVERTING DECIMAL TO HEXADECIMAL
  • 21. (F8)16 F = 1111 8 = 1000 = (11111000)2 2) (1A) 16 1 = 0001 A = 1010 = (00011010)2 Convert Hexadecimal number to Binary
  • 22. Hexadecimal to Octal Number System Conversion Hexa decim al 0 1 2 3 4 5 6 7 8 9 A B C D E F Octal 0 1 2 3 4 5 6 7 10 11 12 13 14 15 16 17
  • 23. we have to first convert octal number to decimal and then decimal to hexadecimal. Convert (121)8 into hexadecimal. Solution: First convert 121 into decimal number. ⇒ 1 × 82 + 2 × 81 + 1 × 80 ⇒ 1 × 64 + 2 × 8 + 1 × 1 ⇒ 64 + 16 + 1 ⇒ 81 => (121)8 = 8110 81/16 = Result = 5 Remainder = 1 5/16 = Result = 0 Remainder = 5 = (51)16 Octal to Hexadecimal Number System Conversion
  • 24. Convert Hexadecimal number to Binary HEX DECIMAL BINARY 0 0 = 0+0+0+0 0000 1 1 = 0+0+0+1 0001 2 2 = 0+0+2+0 0010 3 3 = 0+0+2+1 0011 4 4 = 0+4+0+0 0100 5 5 = 0+4+0+1 0101 6 6 = 0+4+2+0 0110 7 7 = 0+4+2+1 0111 8 8 = 8+0+0+0 1000 9 9 = 8+0+0+1 1001 A 10 = 8+0+2+0 1010 B 11 = 8+0+2+1 1011 C 12 = 8+4+0+0 1100 D 13 = 8+4+0+1 1101 E 14 = 8+4+2+0 1110 F 15 = 8+4+2+1 1111
  • 25. 1) Convert 17410 to binary 17410 = 101011102 Convert Decimal number to Binary Division by 2 Quotient(Result) Remainder Bit # 174/2 87 0 0 87/2 43 1 1 43/2 21 1 2 21/2 10 1 3 10/2 5 0 4 5/2 2 1 5 2/2 1 0 6 1/2 0 1 7
  • 26. 2) Convert 1310 to binary: 1310 = 11012 Convert Decimal number to Binary Division by 2 Quotient(Result) Remainder Bit # 13/2 6 1 0 6/2 3 0 1 3/2 1 1 2 1/2 0 1 3
  • 27. 3) 3.1 125 into octal number. First convert it into octal or hexadecimal number (125)10 = 125/8 Result : 15 Reminder : 5 =15/8 Result: 1 Reminder :7 = 1/8 Result : 0 Reminder :1 = (175)8 Then convert it into binary number by converting each digit. (001 111 101)2 3.2 = 125/16 Result : 7 Reminder : 13 – (D) [13 equivalent hexa value is D) = 7/16 Result : 0 Reminder : 7 = 7D = 0111 1101 Convert Decimal number to Binary