SlideShare a Scribd company logo
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

PPTX
Number base conversion
PPTX
ALL ABOUT NUMBER SYSTEMS
PPTX
Number system
PPTX
Number system
PPT
Number system
PPT
Number system
PPT
Binary numbersystem
Number base conversion
ALL ABOUT NUMBER SYSTEMS
Number system
Number system
Number system
Number system
Binary numbersystem

What's hot (20)

PPT
numbers system
PPT
Conversion of number system with base concept
PPTX
Number system
PPT
Binary system ppt
PDF
Number system
PDF
Digital and Logic Design Chapter 1 binary_systems
PPT
digital logic design number system
PDF
Number systems
PDF
Binary octal
PDF
Binary Mathematics Classwork and Hw
PPT
Numbersystemcont
PDF
Octal and Hexadecimal Numbering Systems
PPTX
Number system....
PPTX
Number System & Data Representation
PPTX
Number system
PPT
Binary number systems
PDF
Ncp computer appls num sys2 pramod
PPT
Number system
PPSX
Basic of number system
PPT
Introduction to the Binary Number System
numbers system
Conversion of number system with base concept
Number system
Binary system ppt
Number system
Digital and Logic Design Chapter 1 binary_systems
digital logic design number system
Number systems
Binary octal
Binary Mathematics Classwork and Hw
Numbersystemcont
Octal and Hexadecimal Numbering Systems
Number system....
Number System & Data Representation
Number system
Binary number systems
Ncp computer appls num sys2 pramod
Number system
Basic of number system
Introduction to the Binary Number System
Ad

Similar to Chapter 3 part i data representation (20)

PPTX
Chapter 03-Number System-Computer Application.pptx
PDF
Ch 4
PDF
lecture02-numbersystem-191002152647.pdf
PPTX
Number Systems
PPTX
presentation on number system power point.
PPTX
Digital Logic Design.pptx
PPT
digital systems and information
PPT
Lecture 2
PPTX
Presentaion on introduction to Number system
PDF
5a data representation
PPTX
Number system
PPTX
LCDF3_Chap_01x.pptx
PPTX
Lec 6 Number systems (1) Lec 6 Number systems (1) Lec 6 Number systems (1) Le...
DOCX
There are 10 kinds of people in the world—those who understand.docx
PPT
02 number systems
PPT
100_2_digitalSystem_Chap1 (2).ppt
PPTX
Data Representation
PPT
LCDF3_Chap_01 computer engineering 01.ppt
PPTX
Digital Principles & System Design Unit1_Number systems
PPTX
Number System.pptx
Chapter 03-Number System-Computer Application.pptx
Ch 4
lecture02-numbersystem-191002152647.pdf
Number Systems
presentation on number system power point.
Digital Logic Design.pptx
digital systems and information
Lecture 2
Presentaion on introduction to Number system
5a data representation
Number system
LCDF3_Chap_01x.pptx
Lec 6 Number systems (1) Lec 6 Number systems (1) Lec 6 Number systems (1) Le...
There are 10 kinds of people in the world—those who understand.docx
02 number systems
100_2_digitalSystem_Chap1 (2).ppt
Data Representation
LCDF3_Chap_01 computer engineering 01.ppt
Digital Principles & System Design Unit1_Number systems
Number System.pptx
Ad

Recently uploaded (20)

PDF
Dropbox Q2 2025 Financial Results & Investor Presentation
PPTX
sap open course for s4hana steps from ECC to s4
PDF
Reach Out and Touch Someone: Haptics and Empathic Computing
PDF
Chapter 3 Spatial Domain Image Processing.pdf
PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
PPT
“AI and Expert System Decision Support & Business Intelligence Systems”
PPTX
Cloud computing and distributed systems.
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PPTX
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx
PDF
Review of recent advances in non-invasive hemoglobin estimation
PDF
A comparative analysis of optical character recognition models for extracting...
PPTX
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
PDF
Encapsulation_ Review paper, used for researhc scholars
PDF
Unlocking AI with Model Context Protocol (MCP)
PPTX
MYSQL Presentation for SQL database connectivity
PDF
Advanced methodologies resolving dimensionality complications for autism neur...
PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
PDF
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
PDF
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
Dropbox Q2 2025 Financial Results & Investor Presentation
sap open course for s4hana steps from ECC to s4
Reach Out and Touch Someone: Haptics and Empathic Computing
Chapter 3 Spatial Domain Image Processing.pdf
Mobile App Security Testing_ A Comprehensive Guide.pdf
“AI and Expert System Decision Support & Business Intelligence Systems”
Cloud computing and distributed systems.
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx
Review of recent advances in non-invasive hemoglobin estimation
A comparative analysis of optical character recognition models for extracting...
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
Encapsulation_ Review paper, used for researhc scholars
Unlocking AI with Model Context Protocol (MCP)
MYSQL Presentation for SQL database connectivity
Advanced methodologies resolving dimensionality complications for autism neur...
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
Build a system with the filesystem maintained by OSTree @ COSCUP 2025

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