SlideShare une entreprise Scribd logo
1  sur  19
Logic Building Techniques
and Practices
Number System
Hello!
Convert the binary number 1011012 to a decimal number
Binary to Decimal Conversion Using Positional Notation Method 1:
the rightmost digit is called the 'Least Significant Bit' (LSB)
the left-most digit is called the 'Most Significant Bit' (MSB)
For a binary number with 'n' digits, the least significant bit has a weight of 20 and the most
significant bit has a weight of 2n-1.
express the binary number as a
decimal number: 1011012 = (45)10
Binary to Decimal Conversion Using Doubling Method 2
The process of doubling or multiplying by 2.
Step1: in 1011012, the left-most digit is '1'. The double of the previous number is 0. Therefore,
we get ((0 × 2) + 1) which is 1.
Step 2: Continue the same process for the next digit also. The second digit from the left is 0.
Now, double the previous digit and add it with the current digit. Therefore, we get, [(1 × 2) + 0],
which is 2
the binary number 1011012 to a decimal using
the doubling method is 4510
Practice
110010112 = 20310
101011012= 17310
10112 = 1110
101012 = 2110
1110012 = 5710
11001011012
= 81310
10110101112 = 72710
10000000011002
= 410810
10010100012 = 59310
Consectetur nec labore Adipiscingelit sed Sed eiusmod
How to Convert Decimal to Binary?
● Step 1: Divide the given decimal number by 2 and note down the remainder.
● Step 2: Now, divide the obtained quotient by 2, and note the remainder again.
● Step 3: Repeat the above steps until you get 0 as the quotient.
● Step 4: Now, write the remainders in such a way that the last remainder is written
first, followed by the rest in the reverse order.
● Step 5: This can also be understood in another way which states that the Least
Significant Bit (LSB) of the binary number is at the top and the Most Significant Bit
(MSB) is at the bottom. This number is the binary value of the given decimal
number.
Convert the decimal number 1310 to binary
16010 = 101000002
1710 = 100012
34 10 = 1000102
244₁₀ =11110100₂
145₁₀ = 10010001₂
112₁₀ = 1110000₂
(8023)10 = (1111101010111) 2
28510 =(100011101)2
Convert Hexadecimal to Decimal
The hexadecimal system (shortly hex), uses the number 16 as its base
(radix).
● Obtain the decimal equivalent of hexadecimal from the conversion table.
(table mentioned above)
● Multiply each digit with the power of 16 starting at 0 from the right.
● Add all the numbers together.
Convert 7CF (hex) to decimal.
In hexadecimal system,
7 = 7
C = 12
F = 15
7CF = (7 × 162) + (12 × 161) + (15 × 160)
= (7 × 256) + (12 × 16) + (15 × 1)
= 1792 + 192 + 15
= 1999
(1DA6)16 = (7590)10
(E8B)16 = (3723)10
(7CA)16 = (1994)10
(80E1)16
=3299310
14516 = (325)10
(10CE)16 = (4302)10
(5BC)16 = (1468)10
(1D9)16 = (473)10
Hexadecimal to Octal Conversion
● Conversion of hexadecimal to octal cannot be done directly.
● Firstly we need to convert hexadecimal into its equivalent decimal number then
decimal to octal.
Find the equivalent octal form of C116.
C116 = (C × 161) + (1 × 160)
= C × 16 + 1 × 1
=12 × 16 + 1
= 192 + 1
C116 =193 (Decimal form) Hence, C116 = 3018
Method 2
● For each given hexadecimal number digit, write the equivalent binary
number. If any of the binary equivalents are less than 4 digits, add 0’s
to the left side.
● Combine and make the groups of binary digits from right to left, each
containing 3 digits. Add 0’s to the left if there are less than 3 digits in
the last group.
● Find the octal equivalent of each binary group.
Convert 1BC16 into an octal number.
1 → 0001, B → 1011, C →1100
Now group them from right to left, each having 3 digits.
000, 110, 111, 100
000→0, 110 →6, 111→7, 100→4
1BC16 = 6748
(F)16 = (17)8
(105)16 = (405)8
(7CA)16 = (1994)8
(6C)16
=1548
3EC16 = (1354)8
(2CD)16 = (13158)10
(5BC)16 = (1468)8
(1D9)16 = (473)8
(1056)16 to ( ? )8 10126
(2020)10 → (?)16 (7E4)16
(172)10 → ( ? )16
(AC)16
(1032)10 → (?)8
(2010)8
Thank you.

Contenu connexe

Tendances

Computer organization and architecture
Computer organization and architectureComputer organization and architecture
Computer organization and architecture
Subesh Kumar Yadav
 
Architecture of 8086 Microprocessor
Architecture of 8086 Microprocessor  Architecture of 8086 Microprocessor
Architecture of 8086 Microprocessor
Mustapha Fatty
 
Registers and-common-bus
Registers and-common-busRegisters and-common-bus
Registers and-common-bus
Anuj Modi
 
Computer instructions
Computer instructionsComputer instructions
Computer instructions
Anuj Modi
 
Cache memory
Cache memoryCache memory
Cache memory
Anuj Modi
 

Tendances (20)

Data representation in computers
Data representation in computersData representation in computers
Data representation in computers
 
DATA REPRESENTATION
DATA  REPRESENTATIONDATA  REPRESENTATION
DATA REPRESENTATION
 
Memory organization in computer architecture
Memory organization in computer architectureMemory organization in computer architecture
Memory organization in computer architecture
 
Difference b/w 8085 & 8086
Difference b/w 8085 & 8086Difference b/w 8085 & 8086
Difference b/w 8085 & 8086
 
Quick tutorial on IEEE 754 FLOATING POINT representation
Quick tutorial on IEEE 754 FLOATING POINT representationQuick tutorial on IEEE 754 FLOATING POINT representation
Quick tutorial on IEEE 754 FLOATING POINT representation
 
Computer organization and architecture
Computer organization and architectureComputer organization and architecture
Computer organization and architecture
 
Architecture of 8086 Microprocessor
Architecture of 8086 Microprocessor  Architecture of 8086 Microprocessor
Architecture of 8086 Microprocessor
 
Floating point representation
Floating point representationFloating point representation
Floating point representation
 
Cpu organisation
Cpu organisationCpu organisation
Cpu organisation
 
Subtractor (1)
Subtractor (1)Subtractor (1)
Subtractor (1)
 
Registers and-common-bus
Registers and-common-busRegisters and-common-bus
Registers and-common-bus
 
Computer instructions
Computer instructionsComputer instructions
Computer instructions
 
instruction format and addressing modes
instruction format and addressing modesinstruction format and addressing modes
instruction format and addressing modes
 
Cache memory
Cache memoryCache memory
Cache memory
 
Floating point arithmetic operations (1)
Floating point arithmetic operations (1)Floating point arithmetic operations (1)
Floating point arithmetic operations (1)
 
Addressing modes
Addressing modesAddressing modes
Addressing modes
 
Computer arithmetic
Computer arithmeticComputer arithmetic
Computer arithmetic
 
Lil endian.ppt
Lil endian.pptLil endian.ppt
Lil endian.ppt
 
Addressing Modes
Addressing ModesAddressing Modes
Addressing Modes
 
Lecture 3 instruction set
Lecture 3  instruction setLecture 3  instruction set
Lecture 3 instruction set
 

Similaire à Number System.pptx

Binary octal
Binary octalBinary octal
Binary octal
drdipo4
 

Similaire à Number System.pptx (20)

Data representation in computers
Data representation in computersData representation in computers
Data representation in computers
 
Data Representation
Data RepresentationData Representation
Data Representation
 
Number system
Number systemNumber system
Number system
 
Data Representation
Data RepresentationData Representation
Data Representation
 
Number Systems
Number SystemsNumber Systems
Number Systems
 
Number System and Conversions.pptx
Number System and Conversions.pptxNumber System and Conversions.pptx
Number System and Conversions.pptx
 
B sc3 unit 2 number system
B sc3  unit 2 number systemB sc3  unit 2 number system
B sc3 unit 2 number system
 
DATA REPRESENTATION.pptx
DATA REPRESENTATION.pptxDATA REPRESENTATION.pptx
DATA REPRESENTATION.pptx
 
Number system
Number systemNumber system
Number system
 
Cse 112 number system-[id_142-15-3472]
Cse 112 number system-[id_142-15-3472]Cse 112 number system-[id_142-15-3472]
Cse 112 number system-[id_142-15-3472]
 
Introduction to number system
Introduction to number systemIntroduction to number system
Introduction to number system
 
Number system computer fundamental
 Number  system computer fundamental  Number  system computer fundamental
Number system computer fundamental
 
B sc ii sem unit 2(a) ns
B sc ii sem  unit 2(a) nsB sc ii sem  unit 2(a) ns
B sc ii sem unit 2(a) ns
 
Chapter two FHI.pptx
Chapter two FHI.pptxChapter two FHI.pptx
Chapter two FHI.pptx
 
B sc cs i bo-de u-i number system
B sc cs i bo-de u-i number systemB sc cs i bo-de u-i number system
B sc cs i bo-de u-i number system
 
micro tut1.pptx
micro tut1.pptxmicro tut1.pptx
micro tut1.pptx
 
Number system
Number systemNumber system
Number system
 
Binary octal
Binary octalBinary octal
Binary octal
 
Number system
Number systemNumber system
Number system
 
DCF QNA edited
DCF QNA editedDCF QNA edited
DCF QNA edited
 

Plus de Shehrevar Davierwala

Plus de Shehrevar Davierwala (20)

Introduction_Swift
Introduction_SwiftIntroduction_Swift
Introduction_Swift
 
Java Script (Module 1).pptx
Java Script (Module 1).pptxJava Script (Module 1).pptx
Java Script (Module 1).pptx
 
Website in Clicks Day 2
Website in Clicks Day 2Website in Clicks Day 2
Website in Clicks Day 2
 
Develop Website in Clicks
Develop Website in ClicksDevelop Website in Clicks
Develop Website in Clicks
 
Build Virtual Assistant Using AI
Build Virtual Assistant Using AI Build Virtual Assistant Using AI
Build Virtual Assistant Using AI
 
Build brand reputation using facebook
Build brand reputation using facebookBuild brand reputation using facebook
Build brand reputation using facebook
 
Digital Marketing Session 2
Digital Marketing Session 2Digital Marketing Session 2
Digital Marketing Session 2
 
Learn Digital Marketing : 0 to Hero Day 1
Learn Digital Marketing :  0 to Hero Day 1 Learn Digital Marketing :  0 to Hero Day 1
Learn Digital Marketing : 0 to Hero Day 1
 
Standard template
Standard templateStandard template
Standard template
 
Digital Marketing for Sustainable Business - Afghan Perspective
Digital Marketing for Sustainable Business - Afghan Perspective  Digital Marketing for Sustainable Business - Afghan Perspective
Digital Marketing for Sustainable Business - Afghan Perspective
 
Developing stunning website in clicks - 2
Developing stunning website in clicks - 2Developing stunning website in clicks - 2
Developing stunning website in clicks - 2
 
Developing stunning website in clicks
Developing stunning website in clicksDeveloping stunning website in clicks
Developing stunning website in clicks
 
Google forms for data analysis
Google forms for data analysisGoogle forms for data analysis
Google forms for data analysis
 
Webdesign session1
Webdesign session1Webdesign session1
Webdesign session1
 
Tech talk webtech
Tech talk webtechTech talk webtech
Tech talk webtech
 
Tech talk php_cms
Tech talk php_cmsTech talk php_cms
Tech talk php_cms
 
Ph pbasics
Ph pbasicsPh pbasics
Ph pbasics
 
Php mysql
Php mysqlPhp mysql
Php mysql
 
Java operators
Java operatorsJava operators
Java operators
 
Basic
BasicBasic
Basic
 

Dernier

Dernier (20)

NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
 
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.
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.ppt
 
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptxExploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POS
 
How to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptxHow to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptx
 
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
 
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Ă...
 
Interdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptxInterdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptx
 
Fostering Friendships - Enhancing Social Bonds in the Classroom
Fostering Friendships - Enhancing Social Bonds  in the ClassroomFostering Friendships - Enhancing Social Bonds  in the Classroom
Fostering Friendships - Enhancing Social Bonds in the Classroom
 
Graduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - EnglishGraduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - English
 
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
 
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
 
Google Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxGoogle Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptx
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17
 
Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdf
 
How to Add New Custom Addons Path in Odoo 17
How to Add New Custom Addons Path in Odoo 17How to Add New Custom Addons Path in Odoo 17
How to Add New Custom Addons Path in Odoo 17
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docx
 
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
 
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxHMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
 

Number System.pptx

  • 1. Logic Building Techniques and Practices Number System
  • 3. Convert the binary number 1011012 to a decimal number Binary to Decimal Conversion Using Positional Notation Method 1: the rightmost digit is called the 'Least Significant Bit' (LSB) the left-most digit is called the 'Most Significant Bit' (MSB) For a binary number with 'n' digits, the least significant bit has a weight of 20 and the most significant bit has a weight of 2n-1.
  • 4. express the binary number as a decimal number: 1011012 = (45)10
  • 5. Binary to Decimal Conversion Using Doubling Method 2 The process of doubling or multiplying by 2. Step1: in 1011012, the left-most digit is '1'. The double of the previous number is 0. Therefore, we get ((0 × 2) + 1) which is 1. Step 2: Continue the same process for the next digit also. The second digit from the left is 0. Now, double the previous digit and add it with the current digit. Therefore, we get, [(1 × 2) + 0], which is 2
  • 6. the binary number 1011012 to a decimal using the doubling method is 4510
  • 7. Practice 110010112 = 20310 101011012= 17310 10112 = 1110 101012 = 2110 1110012 = 5710 11001011012 = 81310 10110101112 = 72710 10000000011002 = 410810 10010100012 = 59310
  • 8. Consectetur nec labore Adipiscingelit sed Sed eiusmod How to Convert Decimal to Binary? ● Step 1: Divide the given decimal number by 2 and note down the remainder. ● Step 2: Now, divide the obtained quotient by 2, and note the remainder again. ● Step 3: Repeat the above steps until you get 0 as the quotient. ● Step 4: Now, write the remainders in such a way that the last remainder is written first, followed by the rest in the reverse order. ● Step 5: This can also be understood in another way which states that the Least Significant Bit (LSB) of the binary number is at the top and the Most Significant Bit (MSB) is at the bottom. This number is the binary value of the given decimal number.
  • 9. Convert the decimal number 1310 to binary
  • 10. 16010 = 101000002 1710 = 100012 34 10 = 1000102 244₁₀ =11110100₂ 145₁₀ = 10010001₂ 112₁₀ = 1110000₂ (8023)10 = (1111101010111) 2 28510 =(100011101)2
  • 11. Convert Hexadecimal to Decimal The hexadecimal system (shortly hex), uses the number 16 as its base (radix). ● Obtain the decimal equivalent of hexadecimal from the conversion table. (table mentioned above) ● Multiply each digit with the power of 16 starting at 0 from the right. ● Add all the numbers together.
  • 12. Convert 7CF (hex) to decimal. In hexadecimal system, 7 = 7 C = 12 F = 15 7CF = (7 × 162) + (12 × 161) + (15 × 160) = (7 × 256) + (12 × 16) + (15 × 1) = 1792 + 192 + 15 = 1999
  • 13. (1DA6)16 = (7590)10 (E8B)16 = (3723)10 (7CA)16 = (1994)10 (80E1)16 =3299310 14516 = (325)10 (10CE)16 = (4302)10 (5BC)16 = (1468)10 (1D9)16 = (473)10
  • 14. Hexadecimal to Octal Conversion ● Conversion of hexadecimal to octal cannot be done directly. ● Firstly we need to convert hexadecimal into its equivalent decimal number then decimal to octal. Find the equivalent octal form of C116. C116 = (C × 161) + (1 × 160) = C × 16 + 1 × 1 =12 × 16 + 1 = 192 + 1 C116 =193 (Decimal form) Hence, C116 = 3018
  • 15. Method 2 ● For each given hexadecimal number digit, write the equivalent binary number. If any of the binary equivalents are less than 4 digits, add 0’s to the left side. ● Combine and make the groups of binary digits from right to left, each containing 3 digits. Add 0’s to the left if there are less than 3 digits in the last group. ● Find the octal equivalent of each binary group.
  • 16. Convert 1BC16 into an octal number. 1 → 0001, B → 1011, C →1100 Now group them from right to left, each having 3 digits. 000, 110, 111, 100 000→0, 110 →6, 111→7, 100→4 1BC16 = 6748
  • 17. (F)16 = (17)8 (105)16 = (405)8 (7CA)16 = (1994)8 (6C)16 =1548 3EC16 = (1354)8 (2CD)16 = (13158)10 (5BC)16 = (1468)8 (1D9)16 = (473)8
  • 18. (1056)16 to ( ? )8 10126 (2020)10 → (?)16 (7E4)16 (172)10 → ( ? )16 (AC)16 (1032)10 → (?)8 (2010)8