SlideShare a Scribd company logo
1 of 27
Download to read offline
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 (20)

Number System
Number SystemNumber System
Number System
 
Number system
Number system Number system
Number system
 
Data representation
 Data representation Data representation
Data representation
 
Number System
Number SystemNumber System
Number System
 
Digital Electronics- Number systems & codes
Digital Electronics- Number systems & codes Digital Electronics- Number systems & codes
Digital Electronics- Number systems & codes
 
Binary Conversion
Binary ConversionBinary Conversion
Binary Conversion
 
Binary to Decimal Conversion
Binary to Decimal ConversionBinary to Decimal Conversion
Binary to Decimal Conversion
 
Number System (Binary,octal,Decimal,Hexadecimal)
Number System (Binary,octal,Decimal,Hexadecimal)Number System (Binary,octal,Decimal,Hexadecimal)
Number System (Binary,octal,Decimal,Hexadecimal)
 
Basic of number system
Basic of number systemBasic of number system
Basic of number system
 
NUMBER SYSTEM
NUMBER SYSTEMNUMBER SYSTEM
NUMBER SYSTEM
 
Number system computer fundamental
 Number  system computer fundamental  Number  system computer fundamental
Number system computer fundamental
 
Number system
Number systemNumber system
Number system
 
Conversion binary to decimal
Conversion binary to decimalConversion binary to decimal
Conversion binary to decimal
 
Number system
Number systemNumber system
Number system
 
BCD to Decimal - Digital Electronics
BCD to Decimal - Digital ElectronicsBCD to Decimal - Digital Electronics
BCD to Decimal - Digital Electronics
 
Number System
Number SystemNumber System
Number System
 
Chapter 4 number system
Chapter 4 number systemChapter 4 number system
Chapter 4 number system
 
Binary to Decimal Conversion
Binary to Decimal ConversionBinary to Decimal Conversion
Binary to Decimal Conversion
 
Computer number systems
Computer number systemsComputer number systems
Computer number systems
 
W 9 numbering system
W 9 numbering systemW 9 numbering system
W 9 numbering system
 

Similar to Number systems

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
 
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
 
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
 
Number system
Number system Number system
Number system
 
DATA REPRESENTATION.pptx
DATA REPRESENTATION.pptxDATA REPRESENTATION.pptx
DATA REPRESENTATION.pptx
 
COmputer Number system.pptx
COmputer Number system.pptxCOmputer Number system.pptx
COmputer Number system.pptx
 
Number system
Number systemNumber system
Number system
 

More from pyingkodi maran

Essential concepts for machine learning
Essential concepts for machine learning Essential concepts for machine learning
Essential concepts for machine learning 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
 
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 Collegepyingkodi 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

Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur EscortsCall Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur High Profile
 
Introduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptxIntroduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptxupamatechverse
 
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICSHARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICSRajkumarAkumalla
 
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCollege Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCall Girls in Nagpur High Profile
 
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escortsranjana rawat
 
What are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptxWhat are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptxwendy cai
 
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur High Profile
 
Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024hassan khalil
 
Software Development Life Cycle By Team Orange (Dept. of Pharmacy)
Software Development Life Cycle By  Team Orange (Dept. of Pharmacy)Software Development Life Cycle By  Team Orange (Dept. of Pharmacy)
Software Development Life Cycle By Team Orange (Dept. of Pharmacy)Suman Mia
 
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130Suhani Kapoor
 
main PPT.pptx of girls hostel security using rfid
main PPT.pptx of girls hostel security using rfidmain PPT.pptx of girls hostel security using rfid
main PPT.pptx of girls hostel security using rfidNikhilNagaraju
 
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...ranjana rawat
 
Microscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxMicroscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxpurnimasatapathy1234
 
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur High Profile
 
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Dr.Costas Sachpazis
 
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSAPPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSKurinjimalarL3
 
the ladakh protest in leh ladakh 2024 sonam wangchuk.pptx
the ladakh protest in leh ladakh 2024 sonam wangchuk.pptxthe ladakh protest in leh ladakh 2024 sonam wangchuk.pptx
the ladakh protest in leh ladakh 2024 sonam wangchuk.pptxhumanexperienceaaa
 

Recently uploaded (20)

Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur EscortsCall Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
 
Introduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptxIntroduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptx
 
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICSHARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
 
DJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINE
DJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINEDJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINE
DJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINE
 
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCollege Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
 
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
 
What are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptxWhat are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptx
 
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
 
Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024
 
Software Development Life Cycle By Team Orange (Dept. of Pharmacy)
Software Development Life Cycle By  Team Orange (Dept. of Pharmacy)Software Development Life Cycle By  Team Orange (Dept. of Pharmacy)
Software Development Life Cycle By Team Orange (Dept. of Pharmacy)
 
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
 
main PPT.pptx of girls hostel security using rfid
main PPT.pptx of girls hostel security using rfidmain PPT.pptx of girls hostel security using rfid
main PPT.pptx of girls hostel security using rfid
 
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
 
9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf
9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf
9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf
 
Microscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxMicroscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptx
 
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
 
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
 
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSAPPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
 
the ladakh protest in leh ladakh 2024 sonam wangchuk.pptx
the ladakh protest in leh ladakh 2024 sonam wangchuk.pptxthe ladakh protest in leh ladakh 2024 sonam wangchuk.pptx
the ladakh protest in leh ladakh 2024 sonam wangchuk.pptx
 
★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR
★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR
★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR
 

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