SlideShare a Scribd company logo
1 of 21
Data Representation
Chapter 3 Part I
Contents
 Introduction to number system
 Different bases numbers
 Converting different bases numbers
into decimal
 Converting decimal numbers into
different bases
 Converting floating points
Objectives
 At the end of this chapter, students
should be able to:
 Explain the different bases number
system
 Convert numbers into different bases
 Convert floating numbers into different
bases
Introduction
 Human
 use decimal (base 10) number system to
count and perform arithmetic.
 Computer
 uses binary (base 2) number system.
 each digit is known as a bit (0 and 1).
Introduction
 Computer stores and manipulates the
bits in group of 8(byte), 16 (halfword),
32 (word) and 64 (double word).
 Number of bits used in calculations
affects the accuracy and size
limitations of numbers manipulated by
the computer.
Introduction
 Counting in base 10
 E.g.: 0, 1, 2, 3, …, 10, …, 100,…
10 (1 x 101
+ 0 = 10 + 0)
63 (6 x 101
+ 3 x 100
= 60 + 3)
747 (7 x 102
+ 4 x 101
+ 7 x 100 =
700 + 40 + 7)
Different bases numbers
Different bases numbers
 Number can be represented in different bases.
 Different name of bases:
 Base 2  binary
 Base 3  ternary
 Base 4  quaternary
 Base 5  quinary
 Base 6  senary
 Base 7  septenary
 Base 8  octal
 Base 9 nonary
 Base 10  decimal
 Base 11  undenary
 Base 12  duodecimal
 Base 16 hexadecimal
 Base 20  vigesimal
 Base 60 sexagesimal
Different bases numbers
 Base 2 includes (0, 1)
 Base 3 includes (0,1,2)
 Base 4 includes (0,1,2,3)
 Base 9 includes ?
 Base 12 includes ?
 Base 16 includes?
Different bases numbers
 Base 2  0,1, 10, 11,100, 101, …
 Base 3  0,1,2, 10, 11, 12, 20, 21, …
 Base 4  0,1,2,3,10,11,12, 13, 20, …
 Base 9  ?
 Base 12  ?
 Base 16  ?
Converting different bases
numbers into decimal
Converting different bases
number into decimal
 Counting in base 8
 Example: 1278
(1 x 82
) + (2 x 81
)+ (7 x 80
) = 64 + 16 + 7
= 8710
Converting different bases
numbers into decimal
 Counting in base 2:
 E.g.:10112
(1 x 23
) + 0 + (1 x 21
) + (1 x 20
) = 8+0+2+1
= 1110
Converting decimal numbers
into different bases
Converting decimal numbers
into different bases
 Converting to base 8
 E.g.: 30
30 / 8 = 3 Balance 6
3 / 8 = 0  Balance 3
3010 = 368
Converting decimal numbers
into different bases
 Converting to base 4
 E.g.: 30
30 / 4 = 7 Balance 2
7 / 4 = 1  Balance 3
1 / 4 = 0  Balance 1
3010 = 1324
Converting decimal numbers
into different bases
 Converting to base 2
 E.g.: 30
30 / 2 = 15 Balance 0
15 / 2 = 7  Balance 1
7 / 2 = 3  Balance 1
3 / 2 = 1  Balance 1
1 / 2 = 0  Balance 1
3010 = 111102
Converting floating points
Converting floating points
10
10/2 = 5  Balance 0
5/2 = 2  Balance 1
2/2 =1  Balance 0
1/2 =0  Balance 1
1010
.25
0.25 X 2 = 0.5  0
0.5 X 2 = 1  1
01
•Convert decimal to base 2 floating number
•E.g.: 10.25
1010.01
Converting floating points
101
(1x22
) + 0 + (1x20
)
4 + 1
5
1101
(1 x ½)+(1x ¼)+(1x 1/16)
0.5 + 0.25 + 0.0625
0.8125
Converting floating points
 E.g.: 101.1101
 Convert base 2 floating number to decimal
5.8125
End of Chapter 3 Part I

More Related Content

What's hot

Binary octal
Binary octalBinary octal
Binary octal
drdipo4
 
Binary Mathematics Classwork and Hw
Binary Mathematics Classwork and HwBinary Mathematics Classwork and Hw
Binary Mathematics Classwork and Hw
Joji Thompson
 
Number system....
Number system....Number system....
Number system....
mshoaib15
 
Number system
Number systemNumber system
Number system
kashee99
 
Introduction to the Binary Number System
Introduction to the Binary Number SystemIntroduction to the Binary Number System
Introduction to the Binary Number System
James Hamilton
 

What's hot (20)

numbers system
numbers systemnumbers system
numbers system
 
Conversion of number system with base concept
Conversion of number system with base conceptConversion of number system with base concept
Conversion of number system with base concept
 
Number system
Number systemNumber system
Number system
 
Binary system ppt
Binary system pptBinary system ppt
Binary system ppt
 
Number system
Number systemNumber system
Number system
 
Digital and Logic Design Chapter 1 binary_systems
Digital and Logic Design Chapter 1 binary_systemsDigital and Logic Design Chapter 1 binary_systems
Digital and Logic Design Chapter 1 binary_systems
 
digital logic design number system
digital logic design number systemdigital logic design number system
digital logic design number system
 
Number systems
Number systemsNumber systems
Number systems
 
Binary octal
Binary octalBinary octal
Binary octal
 
Binary Mathematics Classwork and Hw
Binary Mathematics Classwork and HwBinary Mathematics Classwork and Hw
Binary Mathematics Classwork and Hw
 
Numbersystemcont
NumbersystemcontNumbersystemcont
Numbersystemcont
 
Octal and Hexadecimal Numbering Systems
Octal and Hexadecimal Numbering SystemsOctal and Hexadecimal Numbering Systems
Octal and Hexadecimal Numbering Systems
 
Number system....
Number system....Number system....
Number system....
 
Number System & Data Representation
Number System & Data RepresentationNumber System & Data Representation
Number System & Data Representation
 
Number system
Number systemNumber system
Number system
 
Binary number systems
Binary number systemsBinary number systems
Binary number systems
 
Ncp computer appls num sys2 pramod
Ncp computer appls  num sys2 pramodNcp computer appls  num sys2 pramod
Ncp computer appls num sys2 pramod
 
Number system
Number systemNumber system
Number system
 
Basic of number system
Basic of number systemBasic of number system
Basic of 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
 

Similar to Chapter 3 part i data representation

LEfddfffhhfrrdvvggfdwfcxsfvdsfgC 02 A.pptx
LEfddfffhhfrrdvvggfdwfcxsfvdsfgC 02 A.pptxLEfddfffhhfrrdvvggfdwfcxsfvdsfgC 02 A.pptx
LEfddfffhhfrrdvvggfdwfcxsfvdsfgC 02 A.pptx
Ahsan433
 
Number System.pptx
Number System.pptxNumber System.pptx
Number System.pptx
Lovely Professional University
 

Similar to Chapter 3 part i data representation (20)

Chapter two FHI.pptx
Chapter two FHI.pptxChapter two FHI.pptx
Chapter two FHI.pptx
 
Number systems
Number systemsNumber systems
Number systems
 
LEfddfffhhfrrdvvggfdwfcxsfvdsfgC 02 A.pptx
LEfddfffhhfrrdvvggfdwfcxsfvdsfgC 02 A.pptxLEfddfffhhfrrdvvggfdwfcxsfvdsfgC 02 A.pptx
LEfddfffhhfrrdvvggfdwfcxsfvdsfgC 02 A.pptx
 
Module 1 number systems and code1
Module 1  number systems and code1Module 1  number systems and code1
Module 1 number systems and code1
 
Introduction to Information Technology Lecture 2
Introduction to Information Technology Lecture 2Introduction to Information Technology Lecture 2
Introduction to Information Technology Lecture 2
 
DATA REPRESENTATION.pptx
DATA REPRESENTATION.pptxDATA REPRESENTATION.pptx
DATA REPRESENTATION.pptx
 
Number system by ammar nawab
Number system by ammar nawabNumber system by ammar nawab
Number system by ammar nawab
 
Number System.pptx
Number System.pptxNumber System.pptx
Number System.pptx
 
Chapter 1 digital design.pptx
Chapter 1 digital design.pptxChapter 1 digital design.pptx
Chapter 1 digital design.pptx
 
Number base conversion (it)
Number base conversion (it)Number base conversion (it)
Number base conversion (it)
 
CSA UNIT-1-SLIDE-1.ppt
CSA UNIT-1-SLIDE-1.pptCSA UNIT-1-SLIDE-1.ppt
CSA UNIT-1-SLIDE-1.ppt
 
Unit 1 PDF.pptx
Unit 1 PDF.pptxUnit 1 PDF.pptx
Unit 1 PDF.pptx
 
W 9 numbering system
W 9 numbering systemW 9 numbering system
W 9 numbering system
 
W 9 numbering system
W 9 numbering systemW 9 numbering system
W 9 numbering system
 
08. Numeral Systems
08. Numeral Systems08. Numeral Systems
08. Numeral Systems
 
Chapter 3.pptx
Chapter 3.pptxChapter 3.pptx
Chapter 3.pptx
 
Number Systems
Number SystemsNumber Systems
Number Systems
 
Number system in Digital Electronics
Number system in Digital ElectronicsNumber system in Digital Electronics
Number system in Digital Electronics
 
DCF QNA edited
DCF QNA editedDCF QNA edited
DCF QNA edited
 
Number System
Number SystemNumber System
Number System
 

Recently uploaded

Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
panagenda
 
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Victor Rentea
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 

Recently uploaded (20)

Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
 
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
Cyberprint. Dark Pink Apt Group [EN].pdf
Cyberprint. Dark Pink Apt Group [EN].pdfCyberprint. Dark Pink Apt Group [EN].pdf
Cyberprint. Dark Pink Apt Group [EN].pdf
 
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdfRising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
 
MS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectorsMS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectors
 
[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
ICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesICT role in 21st century education and its challenges
ICT role in 21st century education and its challenges
 
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
 
FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWEREMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
 
AXA XL - Insurer Innovation Award Americas 2024
AXA XL - Insurer Innovation Award Americas 2024AXA XL - Insurer Innovation Award Americas 2024
AXA XL - Insurer Innovation Award Americas 2024
 

Chapter 3 part i data representation

  • 2. Contents  Introduction to number system  Different bases numbers  Converting different bases numbers into decimal  Converting decimal numbers into different bases  Converting floating points
  • 3. Objectives  At the end of this chapter, students should be able to:  Explain the different bases number system  Convert numbers into different bases  Convert floating numbers into different bases
  • 4. Introduction  Human  use decimal (base 10) number system to count and perform arithmetic.  Computer  uses binary (base 2) number system.  each digit is known as a bit (0 and 1).
  • 5. Introduction  Computer stores and manipulates the bits in group of 8(byte), 16 (halfword), 32 (word) and 64 (double word).  Number of bits used in calculations affects the accuracy and size limitations of numbers manipulated by the computer.
  • 6. Introduction  Counting in base 10  E.g.: 0, 1, 2, 3, …, 10, …, 100,… 10 (1 x 101 + 0 = 10 + 0) 63 (6 x 101 + 3 x 100 = 60 + 3) 747 (7 x 102 + 4 x 101 + 7 x 100 = 700 + 40 + 7)
  • 8. Different bases numbers  Number can be represented in different bases.  Different name of bases:  Base 2  binary  Base 3  ternary  Base 4  quaternary  Base 5  quinary  Base 6  senary  Base 7  septenary  Base 8  octal  Base 9 nonary  Base 10  decimal  Base 11  undenary  Base 12  duodecimal  Base 16 hexadecimal  Base 20  vigesimal  Base 60 sexagesimal
  • 9. Different bases numbers  Base 2 includes (0, 1)  Base 3 includes (0,1,2)  Base 4 includes (0,1,2,3)  Base 9 includes ?  Base 12 includes ?  Base 16 includes?
  • 10. Different bases numbers  Base 2  0,1, 10, 11,100, 101, …  Base 3  0,1,2, 10, 11, 12, 20, 21, …  Base 4  0,1,2,3,10,11,12, 13, 20, …  Base 9  ?  Base 12  ?  Base 16  ?
  • 12. Converting different bases number into decimal  Counting in base 8  Example: 1278 (1 x 82 ) + (2 x 81 )+ (7 x 80 ) = 64 + 16 + 7 = 8710
  • 13. Converting different bases numbers into decimal  Counting in base 2:  E.g.:10112 (1 x 23 ) + 0 + (1 x 21 ) + (1 x 20 ) = 8+0+2+1 = 1110
  • 15. Converting decimal numbers into different bases  Converting to base 8  E.g.: 30 30 / 8 = 3 Balance 6 3 / 8 = 0  Balance 3 3010 = 368
  • 16. Converting decimal numbers into different bases  Converting to base 4  E.g.: 30 30 / 4 = 7 Balance 2 7 / 4 = 1  Balance 3 1 / 4 = 0  Balance 1 3010 = 1324
  • 17. Converting decimal numbers into different bases  Converting to base 2  E.g.: 30 30 / 2 = 15 Balance 0 15 / 2 = 7  Balance 1 7 / 2 = 3  Balance 1 3 / 2 = 1  Balance 1 1 / 2 = 0  Balance 1 3010 = 111102
  • 19. Converting floating points 10 10/2 = 5  Balance 0 5/2 = 2  Balance 1 2/2 =1  Balance 0 1/2 =0  Balance 1 1010 .25 0.25 X 2 = 0.5  0 0.5 X 2 = 1  1 01 •Convert decimal to base 2 floating number •E.g.: 10.25 1010.01
  • 20. Converting floating points 101 (1x22 ) + 0 + (1x20 ) 4 + 1 5 1101 (1 x ½)+(1x ¼)+(1x 1/16) 0.5 + 0.25 + 0.0625 0.8125 Converting floating points  E.g.: 101.1101  Convert base 2 floating number to decimal 5.8125
  • 21. End of Chapter 3 Part I