SlideShare a Scribd company logo
By-Amresh Tiwari, Sunbeam Suncity (School & Hostel)
By-Amresh Tiwari, Sunbeam Suncity (School & Hostel)
By-Amresh Tiwari, Sunbeam Suncity (School & Hostel)
By-Amresh Tiwari, Sunbeam Suncity (School & Hostel)
1.
NUMBER
SYSTEM
By-Amresh Tiwari, Sunbeam Suncity (School & Hostel)
Contents:-
❑ Definition
❑ Types of Number System
❑ Conversion among Bases
❑ Decimal To Binary Conversion
❑ Binary To Decimal Conversion
❑ Computer Arithmetic or
Binary Arithmetic
By-Amresh Tiwari, Sunbeam Suncity (School & Hostel)
By-Amresh Tiwari, Sunbeam Suncity (School & Hostel)
Before moving forward let me
share something…
Have you ever
wonder students
how man in pre
historic time’s use
numbers for
counting.
By-Amresh Tiwari, Sunbeam Suncity (School & Hostel)
Let me tell there
were animals they
killed, days and
night. But that not
important, what
important is that in
those time man used
his finger to
counting or made
marking on the
bones.
By-Amresh Tiwari, Sunbeam Suncity (School & Hostel)
But he could only
go up to 10 on his
hands or up to a
certain limit
using the bones.
For larger numbers
there were no
enough fingers to
use.
By-Amresh Tiwari, Sunbeam Suncity (School & Hostel)
So man devised
figures or symbols
representing
numbers and create
a group of symbols
when there was lot to
count.
By-Amresh Tiwari, Sunbeam Suncity (School & Hostel)
So here we go to learn
about-
“Number System”
By-Amresh Tiwari, Sunbeam Suncity (School & Hostel)
Number system
is a well defined
set of symbols or
digits used to
represent
quantity.
By-Amresh Tiwari, Sunbeam Suncity (School & Hostel)
Definition:-
Which number System do we use in
our day to day life?
By-Amresh Tiwari, Sunbeam Suncity (School & Hostel)
Ans. Decimal Number System
Types of Number System
On the basis of the symbols/digits
used in a number system, the
Number System divided into 4 Types.
They are…
By-Amresh Tiwari, Sunbeam Suncity (School & Hostel)
By-Amresh Tiwari, Sunbeam Suncity (School & Hostel)
Number
System
Decimal
Base is 10
(0 - 9)
Binary
Base is 2
(0 - 1)
Octal
Base is 8
(0 - 7)
Hexadecimal
Base is 16
(0 - 9 and A – F)
Note- The BASE or RADIX of a number system is the number of symbols/digits used in it.
By-Amresh Tiwari, Sunbeam Suncity (School & Hostel)
Aryabhat was Indian’s
greatest mathematician and astronomer.
He introduced the concept of Zero(0).
Which number System has ‘8’ as its
base?
By-Amresh Tiwari, Sunbeam Suncity (School & Hostel)
Ans. Octal Number System
Decimal number system is a well defined set
of 10 symbols or digits used to represent
quantity.
By-Amresh Tiwari, Sunbeam Suncity (School & Hostel)
Decimal number system consist of 10 digits,
i.e. 0 to 9 with the base 10.
Digits are -
Binary number system is a well defined set of
2 symbols or digits used to represent
quantity.
By-Amresh Tiwari, Sunbeam Suncity (School & Hostel)
Binary number system consist of 2 digits,
i.e. 0 and 1 with the base 2.
Digits are -
Octal number system is a well defined set of 8
symbols or digits used to represent quantity.
By-Amresh Tiwari, Sunbeam Suncity (School & Hostel)
Octal number system consist of 8 digits,
i.e. 0 to 7 with the base 8.
Digits are -
Hexadecimal number system is a well defined
set of 16 symbols or digits used to represent
quantity.
By-Amresh Tiwari, Sunbeam Suncity (School & Hostel)
Hexadecimal number system consist of 16 digits,
i.e. 0 to 9 and A to F with the base 16.
Digits are -
By-Amresh Tiwari, Sunbeam Suncity (School & Hostel)
By-Amresh Tiwari, Sunbeam Suncity (School & Hostel)
Conversion among Bases
The possibilities are:-
By-Amresh Tiwari, Sunbeam Suncity (School & Hostel)
Binary
Octal
Decimal
Hexadecimal
By-Amresh Tiwari, Sunbeam Suncity (School & Hostel)
There are two method:-
Repeated “Division by 2”
Repeated “Find and Subtract”
By-Amresh Tiwari, Sunbeam Suncity (School & Hostel)
Conversion Of Decimal into Binary Number System
 Write down the decimal number and divide it by 2 (Base of
Binary Number).
 Write the remainder on the right hand side.
 Divide the result (quotient) of the division by 2 and again
write down the remainder.
 Repeat the dividing process and writing down remainders
until the quotient is 0(zero).
 Write the series of remainder from bottom(Most
Significant Digit) to up (Least Significant Digit). This is the
binary equivalent of the decimal number.
By-Amresh Tiwari, Sunbeam Suncity (School & Hostel)
Method 1:- Conversion Of Decimal into Binary
Number System
 Multiply each binary number with its positional value,
which is in terms of power of 2, starting from the
extreme right digit.
 Increase the power one by one, starting from 0(zero),
keeping the base fixed as 2.
 Calculate the sum of all the products to get the
decimal number.
 Write the answer along with its base subscript.
By-Amresh Tiwari, Sunbeam Suncity (School & Hostel)
Conversion Of Binary into Decimal Number System
Activity Section
 Convert the following Decimal numbers into Binary
numbers-
A) 68
B) 51
By-Amresh Tiwari, Sunbeam Suncity (School & Hostel)
1 1 0 0 1 1
1 0 0 0 1 0 0
By-Amresh Tiwari, Sunbeam Suncity (School & Hostel)
For Ex. (25)10 = (?)2
252
6
3
1
12
0
1
0
1
1
2
2
2
2
0
LSD
MSD
Therefore, (25)10 = (11001)2
By-Amresh Tiwari, Sunbeam Suncity (School & Hostel)
For Ex. (11001)2 = (?)10
1 1 0 0 1
1 x 20 =
0 x 21 =
0 x 22 =
1 x 23 =
1 x 24 =
1 x 1 =
1 x 8 =
1 x 16 =
0 x 4 =
0 x 2 =
1
16
8
0
0
25
Therefore, (11001)2 = (25)10
 Multiply each octal number with its positional value,
which is in terms of power of 8, starting from the
extreme right digit.
 Increase the power one by one, starting from 0(zero),
keeping the base fixed as 8.
 Calculate the sum of all the products to get the
decimal number.
 Write the answer along with its base subscript.
By-Amresh Tiwari, Sunbeam Suncity (School & Hostel)
Conversion Of Octal into Decimal Number System
By-Amresh Tiwari, Sunbeam Suncity (School & Hostel)
For Ex. (345)8 = (?)10
3 4 5
5 x 80 =
4 x 81 =
3 x 82 =
5 x 1 =
3 x 64 =
4 x 8 =
5
192
32
229
Therefore, (345)8 = (229)10
 Multiply each hexadecimal number with its positional
value, which is in terms of power of 16, starting from
the extreme right digit.
 Increase the power one by one, starting from 0(zero),
keeping the base fixed as 16.
 Calculate the sum of all the products to get the
decimal number.
 Write the answer along with its base subscript.
By-Amresh Tiwari, Sunbeam Suncity (School & Hostel)
Conversion Of Hexadecimal into Decimal Number
System
By-Amresh Tiwari, Sunbeam Suncity (School & Hostel)
For Ex. (345)16 = (?)10
3 4 5
5 x 160 =
4 x 161 =
3 x 162 =
5 x 1 =
3 x 256 =
4 x 16 =
5
768
64
837
Therefore, (345)16 = (837)10
By-Amresh Tiwari, Sunbeam Suncity (School & Hostel)
By-Amresh Tiwari, Sunbeam Suncity (School & Hostel)
Decimal
To
Binary
Divide by 2
Octal
Divide by 8
Hexadecimal
Divide by 16
By-Amresh Tiwari, Sunbeam Suncity (School & Hostel)
Qus : How would you find whether
a number is represented in
Decimal /Binary /Octal or
Hexadecimal number system?
By-Amresh Tiwari, Sunbeam Suncity (School & Hostel)
Ans :- With the help of Base or Radix
By-Amresh Tiwari, Sunbeam Suncity (School & Hostel)
As a computer understands only the binary code,
so the data entered into the computer by the user is
converted into binary code for processing.
This processing may involve various kinds of
arithmetic operations, such as addition, subtraction,
multiplication, division on the binary numbers.
By-Amresh Tiwari, Sunbeam Suncity (School & Hostel)
Binary addition is same as we perform addition with decimal numbers.
Note- While adding 1 + 1, the output will be 10, where 0 is written under the same
column and carry over 1 is shifted to the next place.
By-Amresh Tiwari, Sunbeam Suncity (School & Hostel)
Ex. -
11 0
1 1 0 + 1 1 = ?
11+
10
1
1 0
Carry
So, 1 1 0 + 1 1 = 1 0 0 1
By-Amresh Tiwari, Sunbeam Suncity (School & Hostel)
Note- The number is borrowed when 1 is subtracted from 0 (10-1=1).
By-Amresh Tiwari, Sunbeam Suncity (School & Hostel)
Ex. -
11 0
(1 1 0)2 – (1 1)2 = ?
11-
11
1
0
Borrow
So, (1 1 0)2 – (1 1)2 = (1 1)2
1
By-Amresh Tiwari, Sunbeam Suncity (School & Hostel)
Binary multiplication is same as that of the decimal numbers.
By-Amresh Tiwari, Sunbeam Suncity (School & Hostel)
Ex. - (1 1 0)2 – (1 1)2 = ?
1 1
1
0
1x
11
11 0
0
01001
So, (1 1 0)2 – (1 1)2 = 1 0 0 1 0
By-Amresh Tiwari, Sunbeam Suncity (School & Hostel)
Binary division is same as that of the decimal numbers.
1 1 01 0
Ex. Compute 1 1 0 ÷ 1 0
Divisor
Remainder
Quotient
Dividend
1
1 0
0
1 0
1
1 0
0 0
By-Amresh Tiwari, Sunbeam Suncity (School & Hostel)
2
Decimal
8
10
Binary
Hexadecimal
0
By-Amresh Tiwari, Sunbeam Suncity (School & Hostel)
F
F
F
F
By-Amresh Tiwari, Sunbeam Suncity (School & Hostel)
Similar to ‘Binary to Decimal conversion. The only difference
is the change of base.
The number is borrowed when 1 is subtracted from 0
i.e. 1 0 – 1 = 1
By-Amresh Tiwari, Sunbeam Suncity (School & Hostel)
By-Amresh Tiwari, Sunbeam Suncity (School & Hostel)

More Related Content

PDF
Division by 10 100 and 100
PPT
OPERASI BILANGAN BULAT
DOCX
0 4 subtract integers flow chart handout
PPTX
C1: Whole Numbers
PPSX
Crucigrama aritmético
PPT
Understand Number Lines
PPT
Section3 2
PDF
Lesson 12: Linear Approximations and Differentials (slides)
Division by 10 100 and 100
OPERASI BILANGAN BULAT
0 4 subtract integers flow chart handout
C1: Whole Numbers
Crucigrama aritmético
Understand Number Lines
Section3 2
Lesson 12: Linear Approximations and Differentials (slides)

What's hot (6)

PPTX
A reminder on multiplying and dividing by powers of 10
PPTX
Lesson 7 multiplying decimals by 10, 100, 1000, 10 000
PPT
Multiply And Divide Decimals By Powers Of 10
PDF
Section 1.1 Real Numbers And Number Operations A
PPT
Multiply by 10, 100, 1000, etc...
PPTX
Chapter 1
A reminder on multiplying and dividing by powers of 10
Lesson 7 multiplying decimals by 10, 100, 1000, 10 000
Multiply And Divide Decimals By Powers Of 10
Section 1.1 Real Numbers And Number Operations A
Multiply by 10, 100, 1000, etc...
Chapter 1
Ad

Similar to Number system - Amresh Tiwari (20)

PPTX
Class 7 Cyber toolsComputer NUMBER SYSTEM
PDF
Number system...this ppt specially help BTech 2nd year ECE department
PPTX
NUMBER BASE SYSTEM.pptx
PPTX
Number system
PPTX
Number System & codes.pptx ye mg of the day
PDF
FYBSC IT Digital Electronics Unit I Chapter I Number System and Binary Arithm...
PPTX
Computer number system, conversion and identification
PPTX
Number_system_B.pharm_2nd_BP205T_Unit_1_Ravi.pptx
PPT
Number systems and its conversion & complements.ppt
PDF
Module 1 number systems and code1
PPTX
Ch-06 (Comp) - Number System.pptx important
PDF
INTRODUCTION TO NUMBER SYSTEMS 2024-25.pdf
PPTX
Number System.pptx
PPTX
NUMBER SYSTEM.pptx
PPTX
NUMBER SYSTEM.pptx
PPTX
NUMBER SYSTEM.pptx
PDF
Number systems
PPTX
1. NUMBER SYSTEM.pptx Computer Applications in Pharmacy
PPTX
Week 4-Number Systems.pptx
PPTX
Lecture :different _Number System_.pptx
Class 7 Cyber toolsComputer NUMBER SYSTEM
Number system...this ppt specially help BTech 2nd year ECE department
NUMBER BASE SYSTEM.pptx
Number system
Number System & codes.pptx ye mg of the day
FYBSC IT Digital Electronics Unit I Chapter I Number System and Binary Arithm...
Computer number system, conversion and identification
Number_system_B.pharm_2nd_BP205T_Unit_1_Ravi.pptx
Number systems and its conversion & complements.ppt
Module 1 number systems and code1
Ch-06 (Comp) - Number System.pptx important
INTRODUCTION TO NUMBER SYSTEMS 2024-25.pdf
Number System.pptx
NUMBER SYSTEM.pptx
NUMBER SYSTEM.pptx
NUMBER SYSTEM.pptx
Number systems
1. NUMBER SYSTEM.pptx Computer Applications in Pharmacy
Week 4-Number Systems.pptx
Lecture :different _Number System_.pptx
Ad

More from Amresh Tiwari (7)

PDF
Digital documentation
PDF
Internet and its Applications - By Amresh Tiwari (SGEI)
PDF
Basic computer operation (windows os) - Amresh Tiwari
PDF
Review python - By Amresh Tiwari
PDF
Digital de addiction - By Amresh Tiwari
PDF
Networking concepts by Amresh Tiwari
PDF
Formulas and functions - By Amresh Tiwari
Digital documentation
Internet and its Applications - By Amresh Tiwari (SGEI)
Basic computer operation (windows os) - Amresh Tiwari
Review python - By Amresh Tiwari
Digital de addiction - By Amresh Tiwari
Networking concepts by Amresh Tiwari
Formulas and functions - By Amresh Tiwari

Recently uploaded (20)

PPTX
Lesson notes of climatology university.
PPTX
Final Presentation General Medicine 03-08-2024.pptx
PDF
IGGE1 Understanding the Self1234567891011
DOC
Soft-furnishing-By-Architect-A.F.M.Mohiuddin-Akhand.doc
PDF
Practical Manual AGRO-233 Principles and Practices of Natural Farming
PDF
Trump Administration's workforce development strategy
PPTX
A powerpoint presentation on the Revised K-10 Science Shaping Paper
PDF
advance database management system book.pdf
PPTX
1st Inaugural Professorial Lecture held on 19th February 2020 (Governance and...
PPTX
202450812 BayCHI UCSC-SV 20250812 v17.pptx
PDF
OBE - B.A.(HON'S) IN INTERIOR ARCHITECTURE -Ar.MOHIUDDIN.pdf
PDF
What if we spent less time fighting change, and more time building what’s rig...
PDF
Indian roads congress 037 - 2012 Flexible pavement
PDF
Hazard Identification & Risk Assessment .pdf
PPTX
Final Presentation General Medicine 03-08-2024.pptx
PPTX
Digestion and Absorption of Carbohydrates, Proteina and Fats
PDF
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape
PPTX
Unit 4 Skeletal System.ppt.pptxopresentatiom
PDF
LDMMIA Reiki Yoga Finals Review Spring Summer
PDF
SOIL: Factor, Horizon, Process, Classification, Degradation, Conservation
Lesson notes of climatology university.
Final Presentation General Medicine 03-08-2024.pptx
IGGE1 Understanding the Self1234567891011
Soft-furnishing-By-Architect-A.F.M.Mohiuddin-Akhand.doc
Practical Manual AGRO-233 Principles and Practices of Natural Farming
Trump Administration's workforce development strategy
A powerpoint presentation on the Revised K-10 Science Shaping Paper
advance database management system book.pdf
1st Inaugural Professorial Lecture held on 19th February 2020 (Governance and...
202450812 BayCHI UCSC-SV 20250812 v17.pptx
OBE - B.A.(HON'S) IN INTERIOR ARCHITECTURE -Ar.MOHIUDDIN.pdf
What if we spent less time fighting change, and more time building what’s rig...
Indian roads congress 037 - 2012 Flexible pavement
Hazard Identification & Risk Assessment .pdf
Final Presentation General Medicine 03-08-2024.pptx
Digestion and Absorption of Carbohydrates, Proteina and Fats
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape
Unit 4 Skeletal System.ppt.pptxopresentatiom
LDMMIA Reiki Yoga Finals Review Spring Summer
SOIL: Factor, Horizon, Process, Classification, Degradation, Conservation

Number system - Amresh Tiwari

  • 1. By-Amresh Tiwari, Sunbeam Suncity (School & Hostel)
  • 2. By-Amresh Tiwari, Sunbeam Suncity (School & Hostel)
  • 3. By-Amresh Tiwari, Sunbeam Suncity (School & Hostel)
  • 4. By-Amresh Tiwari, Sunbeam Suncity (School & Hostel)
  • 5. 1. NUMBER SYSTEM By-Amresh Tiwari, Sunbeam Suncity (School & Hostel)
  • 6. Contents:- ❑ Definition ❑ Types of Number System ❑ Conversion among Bases ❑ Decimal To Binary Conversion ❑ Binary To Decimal Conversion ❑ Computer Arithmetic or Binary Arithmetic By-Amresh Tiwari, Sunbeam Suncity (School & Hostel)
  • 7. By-Amresh Tiwari, Sunbeam Suncity (School & Hostel) Before moving forward let me share something…
  • 8. Have you ever wonder students how man in pre historic time’s use numbers for counting. By-Amresh Tiwari, Sunbeam Suncity (School & Hostel)
  • 9. Let me tell there were animals they killed, days and night. But that not important, what important is that in those time man used his finger to counting or made marking on the bones. By-Amresh Tiwari, Sunbeam Suncity (School & Hostel)
  • 10. But he could only go up to 10 on his hands or up to a certain limit using the bones. For larger numbers there were no enough fingers to use. By-Amresh Tiwari, Sunbeam Suncity (School & Hostel)
  • 11. So man devised figures or symbols representing numbers and create a group of symbols when there was lot to count. By-Amresh Tiwari, Sunbeam Suncity (School & Hostel)
  • 12. So here we go to learn about- “Number System” By-Amresh Tiwari, Sunbeam Suncity (School & Hostel)
  • 13. Number system is a well defined set of symbols or digits used to represent quantity. By-Amresh Tiwari, Sunbeam Suncity (School & Hostel) Definition:-
  • 14. Which number System do we use in our day to day life? By-Amresh Tiwari, Sunbeam Suncity (School & Hostel) Ans. Decimal Number System
  • 15. Types of Number System On the basis of the symbols/digits used in a number system, the Number System divided into 4 Types. They are… By-Amresh Tiwari, Sunbeam Suncity (School & Hostel)
  • 16. By-Amresh Tiwari, Sunbeam Suncity (School & Hostel) Number System Decimal Base is 10 (0 - 9) Binary Base is 2 (0 - 1) Octal Base is 8 (0 - 7) Hexadecimal Base is 16 (0 - 9 and A – F) Note- The BASE or RADIX of a number system is the number of symbols/digits used in it.
  • 17. By-Amresh Tiwari, Sunbeam Suncity (School & Hostel) Aryabhat was Indian’s greatest mathematician and astronomer. He introduced the concept of Zero(0).
  • 18. Which number System has ‘8’ as its base? By-Amresh Tiwari, Sunbeam Suncity (School & Hostel) Ans. Octal Number System
  • 19. Decimal number system is a well defined set of 10 symbols or digits used to represent quantity. By-Amresh Tiwari, Sunbeam Suncity (School & Hostel) Decimal number system consist of 10 digits, i.e. 0 to 9 with the base 10. Digits are -
  • 20. Binary number system is a well defined set of 2 symbols or digits used to represent quantity. By-Amresh Tiwari, Sunbeam Suncity (School & Hostel) Binary number system consist of 2 digits, i.e. 0 and 1 with the base 2. Digits are -
  • 21. Octal number system is a well defined set of 8 symbols or digits used to represent quantity. By-Amresh Tiwari, Sunbeam Suncity (School & Hostel) Octal number system consist of 8 digits, i.e. 0 to 7 with the base 8. Digits are -
  • 22. Hexadecimal number system is a well defined set of 16 symbols or digits used to represent quantity. By-Amresh Tiwari, Sunbeam Suncity (School & Hostel) Hexadecimal number system consist of 16 digits, i.e. 0 to 9 and A to F with the base 16. Digits are -
  • 23. By-Amresh Tiwari, Sunbeam Suncity (School & Hostel)
  • 24. By-Amresh Tiwari, Sunbeam Suncity (School & Hostel)
  • 25. Conversion among Bases The possibilities are:- By-Amresh Tiwari, Sunbeam Suncity (School & Hostel)
  • 27. There are two method:- Repeated “Division by 2” Repeated “Find and Subtract” By-Amresh Tiwari, Sunbeam Suncity (School & Hostel) Conversion Of Decimal into Binary Number System
  • 28.  Write down the decimal number and divide it by 2 (Base of Binary Number).  Write the remainder on the right hand side.  Divide the result (quotient) of the division by 2 and again write down the remainder.  Repeat the dividing process and writing down remainders until the quotient is 0(zero).  Write the series of remainder from bottom(Most Significant Digit) to up (Least Significant Digit). This is the binary equivalent of the decimal number. By-Amresh Tiwari, Sunbeam Suncity (School & Hostel) Method 1:- Conversion Of Decimal into Binary Number System
  • 29.  Multiply each binary number with its positional value, which is in terms of power of 2, starting from the extreme right digit.  Increase the power one by one, starting from 0(zero), keeping the base fixed as 2.  Calculate the sum of all the products to get the decimal number.  Write the answer along with its base subscript. By-Amresh Tiwari, Sunbeam Suncity (School & Hostel) Conversion Of Binary into Decimal Number System
  • 30. Activity Section  Convert the following Decimal numbers into Binary numbers- A) 68 B) 51 By-Amresh Tiwari, Sunbeam Suncity (School & Hostel) 1 1 0 0 1 1 1 0 0 0 1 0 0
  • 31. By-Amresh Tiwari, Sunbeam Suncity (School & Hostel) For Ex. (25)10 = (?)2 252 6 3 1 12 0 1 0 1 1 2 2 2 2 0 LSD MSD Therefore, (25)10 = (11001)2
  • 32. By-Amresh Tiwari, Sunbeam Suncity (School & Hostel) For Ex. (11001)2 = (?)10 1 1 0 0 1 1 x 20 = 0 x 21 = 0 x 22 = 1 x 23 = 1 x 24 = 1 x 1 = 1 x 8 = 1 x 16 = 0 x 4 = 0 x 2 = 1 16 8 0 0 25 Therefore, (11001)2 = (25)10
  • 33.  Multiply each octal number with its positional value, which is in terms of power of 8, starting from the extreme right digit.  Increase the power one by one, starting from 0(zero), keeping the base fixed as 8.  Calculate the sum of all the products to get the decimal number.  Write the answer along with its base subscript. By-Amresh Tiwari, Sunbeam Suncity (School & Hostel) Conversion Of Octal into Decimal Number System
  • 34. By-Amresh Tiwari, Sunbeam Suncity (School & Hostel) For Ex. (345)8 = (?)10 3 4 5 5 x 80 = 4 x 81 = 3 x 82 = 5 x 1 = 3 x 64 = 4 x 8 = 5 192 32 229 Therefore, (345)8 = (229)10
  • 35.  Multiply each hexadecimal number with its positional value, which is in terms of power of 16, starting from the extreme right digit.  Increase the power one by one, starting from 0(zero), keeping the base fixed as 16.  Calculate the sum of all the products to get the decimal number.  Write the answer along with its base subscript. By-Amresh Tiwari, Sunbeam Suncity (School & Hostel) Conversion Of Hexadecimal into Decimal Number System
  • 36. By-Amresh Tiwari, Sunbeam Suncity (School & Hostel) For Ex. (345)16 = (?)10 3 4 5 5 x 160 = 4 x 161 = 3 x 162 = 5 x 1 = 3 x 256 = 4 x 16 = 5 768 64 837 Therefore, (345)16 = (837)10
  • 37. By-Amresh Tiwari, Sunbeam Suncity (School & Hostel)
  • 38. By-Amresh Tiwari, Sunbeam Suncity (School & Hostel) Decimal To Binary Divide by 2 Octal Divide by 8 Hexadecimal Divide by 16
  • 39. By-Amresh Tiwari, Sunbeam Suncity (School & Hostel)
  • 40. Qus : How would you find whether a number is represented in Decimal /Binary /Octal or Hexadecimal number system? By-Amresh Tiwari, Sunbeam Suncity (School & Hostel) Ans :- With the help of Base or Radix
  • 41. By-Amresh Tiwari, Sunbeam Suncity (School & Hostel) As a computer understands only the binary code, so the data entered into the computer by the user is converted into binary code for processing. This processing may involve various kinds of arithmetic operations, such as addition, subtraction, multiplication, division on the binary numbers.
  • 42. By-Amresh Tiwari, Sunbeam Suncity (School & Hostel) Binary addition is same as we perform addition with decimal numbers. Note- While adding 1 + 1, the output will be 10, where 0 is written under the same column and carry over 1 is shifted to the next place.
  • 43. By-Amresh Tiwari, Sunbeam Suncity (School & Hostel) Ex. - 11 0 1 1 0 + 1 1 = ? 11+ 10 1 1 0 Carry So, 1 1 0 + 1 1 = 1 0 0 1
  • 44. By-Amresh Tiwari, Sunbeam Suncity (School & Hostel) Note- The number is borrowed when 1 is subtracted from 0 (10-1=1).
  • 45. By-Amresh Tiwari, Sunbeam Suncity (School & Hostel) Ex. - 11 0 (1 1 0)2 – (1 1)2 = ? 11- 11 1 0 Borrow So, (1 1 0)2 – (1 1)2 = (1 1)2 1
  • 46. By-Amresh Tiwari, Sunbeam Suncity (School & Hostel) Binary multiplication is same as that of the decimal numbers.
  • 47. By-Amresh Tiwari, Sunbeam Suncity (School & Hostel) Ex. - (1 1 0)2 – (1 1)2 = ? 1 1 1 0 1x 11 11 0 0 01001 So, (1 1 0)2 – (1 1)2 = 1 0 0 1 0
  • 48. By-Amresh Tiwari, Sunbeam Suncity (School & Hostel) Binary division is same as that of the decimal numbers. 1 1 01 0 Ex. Compute 1 1 0 ÷ 1 0 Divisor Remainder Quotient Dividend 1 1 0 0 1 0 1 1 0 0 0
  • 49. By-Amresh Tiwari, Sunbeam Suncity (School & Hostel) 2 Decimal 8 10 Binary Hexadecimal 0
  • 50. By-Amresh Tiwari, Sunbeam Suncity (School & Hostel) F F F F
  • 51. By-Amresh Tiwari, Sunbeam Suncity (School & Hostel) Similar to ‘Binary to Decimal conversion. The only difference is the change of base. The number is borrowed when 1 is subtracted from 0 i.e. 1 0 – 1 = 1
  • 52. By-Amresh Tiwari, Sunbeam Suncity (School & Hostel)
  • 53. By-Amresh Tiwari, Sunbeam Suncity (School & Hostel)