SlideShare a Scribd company logo
1 of 77
A PPT
On Number System and
Number System means the way to represent the various types
of numbers .
Example: A number 152 pronounced as One Hundred Fifty
Two.
The Base of a number system is the number of different digits
Which can occupy each position of the system.
These are of following types:
(1) Binary Number System
(2) Decimal Number System
(3) Hexadecimal Number System
(4) Octal Number System
The Binary Number System uses only two numbers i.e., 1 and
0. Thus, its base is 2.
Binary Number is represented as (1000111)2.
The Decimal number System uses 10(Decimal) numerals i.e.,
0,1,2,3,4,5,6,7,8 and 9 . Thus , the base of this number system
is 10.
Decimal Number is represented as (235427)10.
This number system uses total 16 different symbols i.e., 0,1,2,
3,4,5,6,7,8,9,A,B,C,D,E and F. The symbols from A-F represents
values from ten to fifteen. Thus, its base is 16(hex).
Hexadecimal number is represented as (21AC2)16.
In this system, 8 different symbols are used i.e., 0,1,2,3,4,5,6
and 7. Thus, its base is 8(octal).
Octal number is represented as (3175)8.
Hexadecimal
Decimal Octal
Binary
 Technique
 Multiply each bit by 2n, where n is the “weight” of the
bit
 The weight is the position of the bit, starting from 0
on the right
 Add the results
1010112 => 1 x 20 = 1
1 x 21 = 2
0 x 22 = 0
1 x 23 = 8
0 x 24 = 0
1 x 25 = 32
4310
Bit “0”
Hexadecimal
Decimal Octal
Binary
 Technique
 Multiply each bit by 8n, where n is the “weight” of
the bit
 The weight is the position of the bit, starting from 0
on the right
 Add the results
7248 => 4 x 80 = 4
2 x 81 = 16
7 x 82 = 448
46810
Hexadecimal
Decimal Octal
Binary
 Technique
 Multiply each bit by 16n, where n is the “weight” of
the bit
 The weight is the position of the bit, starting from 0
on the right
 Add the results
ABC16 => C x 160 = 12 x 1 = 12
B x 161 = 11 x 16 = 176
A x 162 = 10 x 256 = 2560
274810
Hexadecimal
Decimal Octal
Binary
 Technique
 Divide by two, keep track of the remainder
 First remainder is bit 0 (LSB, least-significant bit)
 Second remainder is bit 1
 Etc.
12510 = ?2
2 125
62 12
31 02
15 1
2
7 1
2
3 12
1 12
0 1
12510 = 11111012
Hexadecimal
Decimal Octal
Binary
 Technique
 Convert each octal digit to a 3-bit equivalent binary
representation
7058 = ?2
7 0 5
111 000 101
7058 = 1110001012
Hexadecimal
Decimal Octal
Binary
 Technique
 Convert each hexadecimal digit to a 4-bit equivalent
binary representation
10AF16 = ?2
1 0 A F
0001 0000 1010 1111
10AF16 = 00010000101011112
Hexadecimal
Decimal Octal
Binary
 Technique
 Divide by 8
 Keep track of the remainder
123410 = ?8
8 1234
154 2
8
19 28
2 3
8
0 2
123410 = 23228
Hexadecimal
Decimal Octal
Binary
 Technique
 Divide by 16
 Keep track of the remainder
123410 = ?16
123410 = 4D216
16 1234
77 216
4 13 = D16
0 4
Hexadecimal
Decimal Octal
Binary
 Technique
 Group bits in threes, starting on right
 Convert to octal digits
10110101112 = ?8
1 011 010 111
1 3 2 7
10110101112 = 13278
Hexadecimal
Decimal Octal
Binary
 Technique
 Group bits in fours, starting on right
 Convert to hexadecimal digits
10101110112 = ?16
10 1011 1011
2 B B
10101110112 = 2BB16
Hexadecimal
Decimal Octal
Binary
 Technique
 Use binary as an intermediary
10768 = ?16
1 0 7 6
001 000 11 1 110
2 3 E
10768 = 23E16
Hexadecimal
Decimal Octal
Binary
 Technique
 Use binary as an intermediary
1F0C16 = ?8
1 F 0 C
0001 1111 0000 1100
1 7 4 1 4
1F0C16 = 174148
Don’t use a calculator!
Decimal Binary Octal
Hexa-
decimal
33
1110101
703
1AF
Decimal Binary Octal
Hexa-
decimal
33 100001 41 21
117 1110101 165 75
451 111000011 703 1C3
431 110101111 657 1AF
Answer
 Decimal to decimal
3.14 => 4 x 10-2 = 0.04
1 x 10-1 = 0.1
3 x 100 = 3
3.14
 Binary to decimal
10.1011 => 1 x 2-4 = 0.0625
1 x 2-3 = 0.125
0 x 2-2 = 0.0
1 x 2-1 = 0.5
0 x 20 = 0.0
1 x 21 = 2.0
2.6875
 Two 1-bit values
A B A + B
0 0 0
0 1 1
1 0 1
1 1 10
“two”
 Two n-bit values
 Add individual bits
 Propagate carries
 E.g.,
10101 21
+ 11001 + 25
101110 46
11
 Two 1-bit values
A B A - B
0 0 0
0 1 1
1 0 1
1 1 0
“borrow
one”
 Two n-bit values
 Subtract individual bits
 Propagate carries
 E.g.,
11001 25
- 10101 -21
101110 4
 Decimal (just for fun)
35
x 105
175
000
35
3675
 Binary, two 1-bit values
A B A  B
0 0 0
0 1 0
1 0 0
1 1 1
 Binary, two n-bit values
 As with decimal values
 E.g.,
1110
x 1011
1110
1110
0000
1110
10011010
Binary Coded Decimal
Binary Coded Decimal
Introduction:
Although binary data is the most efficient storage scheme; every bit pattern
represents a unique, valid value. However, some applications may not be
desirable to work with binary data.
For instance, the internal components of digital clocks keep track of the
time in binary. The binary value must be converted to decimal before it
can be displayed.
Binary Coded Decimal
Because a digital clock is preferable to store the value as a
series of decimal digits, where each digit is separately
represented as its binary equivalent, the most common
format used to represent decimal data is called binary
coded decimal, or BCD.
58
BCD Numeric Format
Every four bits represent one decimal digit.
 Use decimal values
from 0 to 9
 4-bit values above 9 are not used in BCD.
BCD Numeric Format
The unused 4-bit values are:
BCD Decimal
1010 10
1011 11
1100 12
1101 13
1110 14
1111 15
Multi-digit decimal numbers are stored as multiple groups of 4 bits
per digit.
Algorithms for Addition
 1100 is not used in BCD.
Algorithms for Addition
Two errors will occurs in a standard binary adder.
(1 ) The result is not a valid BCD digit.
(2) A valid BCD digit, but not the correct result.
Solution: You need to add 6 to the result generated by a binary adder.
Algorithms for Addition
A simple example of addition in BCD.
0101
+ 1001
1110
+ 0110
1 0100
5
+ 9
Incorrect BCD digit
Add 6
Correct answer
1 4
Logic gates perform a logic operation on one or
more logic inputs and produce a single logic
Output.
Basic Types of Logic Gates or Universal Gates
 AND Gate,
 OR Gate and
 NOT Gate
AND
X
Y
Z=X.Y
Z = X . Y
X Y Z
0 0 0
0 1 0
1 0 0
1 1 1
Truth Table
OR
X
Y
Z=X+Y
Z = X + Y
X Y Z
0 0 0
0 1 1
1 0 1
1 1 1
Truth Table
NOT Gate -- Inverter
X Y
0
1
1
0
X Y
Y
NOT
X Y
Y = ~X
NOT Truth Table
COMBINED LOGIC GATES
 NAND and NOR Gates
 Exclusive-OR (XOR) Gate
 Exclusive-NOR (XNOR) Gate
X
Y
Z
Z = (X . Y)
X Y Z
0 0 1
0 1 1
1 0 1
1 1 0
X
Y
Z
Z = (X + Y)
X Y Z
0 0 1
0 1 0
1 0 0
1 1 0
X Y ZXOR
X
Y
Z 0 0 0
0 1 1
1 0 1
1 1 0
Z = X Ө Y= X Y’ + X’ Y
X Y ZXNOR
X
Y
Z=X Y 0 0 1
0 1 0
1 0 0
1 1 1Z= X Y + X’ Y’= X Ө Y
number system

More Related Content

What's hot

2.1 data represent on cpu
2.1 data represent on cpu2.1 data represent on cpu
2.1 data represent on cpu
Wan Afirah
 
Cmp104 lec 2 number system
Cmp104 lec 2 number systemCmp104 lec 2 number system
Cmp104 lec 2 number system
kapil078
 
Binary octal
Binary octalBinary octal
Binary octal
drdipo4
 

What's hot (20)

ALL ABOUT NUMBER SYSTEMS
ALL ABOUT NUMBER SYSTEMSALL ABOUT NUMBER SYSTEMS
ALL ABOUT NUMBER SYSTEMS
 
Number systems
Number systemsNumber systems
Number systems
 
2.1 data represent on cpu
2.1 data represent on cpu2.1 data represent on cpu
2.1 data represent on cpu
 
Decimal to Binary Conversion
Decimal to Binary ConversionDecimal to Binary Conversion
Decimal to Binary Conversion
 
Okkkkk
OkkkkkOkkkkk
Okkkkk
 
Number System
Number SystemNumber System
Number System
 
data representation
 data representation data representation
data representation
 
Computer Number System
Computer Number SystemComputer Number System
Computer Number System
 
Number system and codes
Number system and codesNumber system and codes
Number system and codes
 
Number system
Number systemNumber system
Number system
 
Octal and Hexadecimal Numbering Systems
Octal and Hexadecimal Numbering SystemsOctal and Hexadecimal Numbering Systems
Octal and Hexadecimal Numbering Systems
 
01.Number Systems
01.Number Systems01.Number Systems
01.Number Systems
 
Introduction to number system
Introduction to number systemIntroduction to number system
Introduction to number system
 
08. Numeral Systems
08. Numeral Systems08. Numeral Systems
08. Numeral Systems
 
Introduction of number system
Introduction of number systemIntroduction of number system
Introduction of number system
 
Cmp104 lec 2 number system
Cmp104 lec 2 number systemCmp104 lec 2 number system
Cmp104 lec 2 number system
 
Binary octal
Binary octalBinary octal
Binary octal
 
Number system 1
Number system 1Number system 1
Number system 1
 
Basic of number system
Basic of number systemBasic of number system
Basic of number system
 
W 9 numbering system
W 9 numbering systemW 9 numbering system
W 9 numbering system
 

Viewers also liked (6)

3.6 radix sort
3.6 radix sort3.6 radix sort
3.6 radix sort
 
Number system
Number systemNumber system
Number system
 
BINARY NUMBER SYSTEM
BINARY NUMBER SYSTEMBINARY NUMBER SYSTEM
BINARY NUMBER SYSTEM
 
Introduction to the Binary Number System
Introduction to the Binary Number SystemIntroduction to the Binary Number System
Introduction to the Binary Number System
 
Number system
Number systemNumber system
Number system
 
Number System
Number SystemNumber System
Number System
 

Similar to number system

01.number systems
01.number systems01.number systems
01.number systems
rasha3
 
ch3a-binary-numbers.ppt
ch3a-binary-numbers.pptch3a-binary-numbers.ppt
ch3a-binary-numbers.ppt
ssuser52a19e
 

Similar to number system (20)

Lec 02
Lec 02Lec 02
Lec 02
 
Chapter two FHI.pptx
Chapter two FHI.pptxChapter two FHI.pptx
Chapter two FHI.pptx
 
01.number systems
01.number systems01.number systems
01.number systems
 
08 Numeral systems
08 Numeral systems08 Numeral systems
08 Numeral systems
 
Number_Systems (2).ppt
Number_Systems (2).pptNumber_Systems (2).ppt
Number_Systems (2).ppt
 
Number system in Digital Electronics
Number system in Digital ElectronicsNumber system in Digital Electronics
Number system in Digital Electronics
 
Digital Electronics Notes.pdf
Digital Electronics Notes.pdfDigital Electronics Notes.pdf
Digital Electronics Notes.pdf
 
uyuyuy.pdf
uyuyuy.pdfuyuyuy.pdf
uyuyuy.pdf
 
Number system
Number systemNumber system
Number system
 
Number system
Number systemNumber system
Number system
 
Video lectures
Video lecturesVideo lectures
Video lectures
 
Mba ebooks
Mba ebooksMba ebooks
Mba ebooks
 
Logic Design 2009
Logic Design 2009Logic Design 2009
Logic Design 2009
 
ch2.pdf
ch2.pdfch2.pdf
ch2.pdf
 
PPT_Module_1.pptx
PPT_Module_1.pptxPPT_Module_1.pptx
PPT_Module_1.pptx
 
DCF QNA edited
DCF QNA editedDCF QNA edited
DCF QNA edited
 
Digital Logic Design.pptx
Digital Logic Design.pptxDigital Logic Design.pptx
Digital Logic Design.pptx
 
ch3a-binary-numbers.ppt
ch3a-binary-numbers.pptch3a-binary-numbers.ppt
ch3a-binary-numbers.ppt
 
ch3a-binary-numbers.ppt
ch3a-binary-numbers.pptch3a-binary-numbers.ppt
ch3a-binary-numbers.ppt
 
ch3a-binary-numbers.ppt
ch3a-binary-numbers.pptch3a-binary-numbers.ppt
ch3a-binary-numbers.ppt
 

More from Pawan Mishra

More from Pawan Mishra (20)

Logarithms
LogarithmsLogarithms
Logarithms
 
Fundamentals of Quantitative Aptitude
Fundamentals of Quantitative AptitudeFundamentals of Quantitative Aptitude
Fundamentals of Quantitative Aptitude
 
Important aptitude questions which are asked in the Infosys Placement
Important aptitude questions which are asked in the Infosys PlacementImportant aptitude questions which are asked in the Infosys Placement
Important aptitude questions which are asked in the Infosys Placement
 
Calendars- Aptitude
Calendars- Aptitude Calendars- Aptitude
Calendars- Aptitude
 
Clocks(quantitative aptitude)
Clocks(quantitative aptitude)Clocks(quantitative aptitude)
Clocks(quantitative aptitude)
 
Infosys test pattern
Infosys test patternInfosys test pattern
Infosys test pattern
 
Facts about number
Facts about numberFacts about number
Facts about number
 
Maths fact
Maths factMaths fact
Maths fact
 
number system
number systemnumber system
number system
 
blood relation
blood relationblood relation
blood relation
 
number system
number systemnumber system
number system
 
PERMUTATION & COMBINATION
PERMUTATION & COMBINATIONPERMUTATION & COMBINATION
PERMUTATION & COMBINATION
 
Careers
CareersCareers
Careers
 
Maths trick
Maths trickMaths trick
Maths trick
 
Lateral puzzle
Lateral puzzleLateral puzzle
Lateral puzzle
 
Maths shortcut
Maths shortcutMaths shortcut
Maths shortcut
 
Magic math
Magic mathMagic math
Magic math
 
Amazing trick
Amazing trickAmazing trick
Amazing trick
 
Ratio
Ratio Ratio
Ratio
 
Ratio & propotion
Ratio & propotion Ratio & propotion
Ratio & propotion
 

Recently uploaded

The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
heathfieldcps1
 
Salient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsSalient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functions
KarakKing
 
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
ZurliaSoop
 

Recently uploaded (20)

On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan Fellows
 
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdfUnit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdf
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and Modifications
 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibit
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.
 
REMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptxREMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptx
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
 
Salient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsSalient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functions
 
How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17
 
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptx
 
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
 
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptxCOMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.
 
Towards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxTowards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptx
 
Single or Multiple melodic lines structure
Single or Multiple melodic lines structureSingle or Multiple melodic lines structure
Single or Multiple melodic lines structure
 
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfUGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
 

number system