SlideShare a Scribd company logo
1 of 42
Topic:- Number System
Presented
by:-
Mohammed
Shoyeb
Submitted to:-
Mrs. Priyanka
ma’am
Objective
1. Understand the concept of number systems.
2. Distinguish between non-positional and positional
number systems.
3. Describe the decimal, binary, OCTAL and HEXADECIMAL
system.
4. Convert a number in binary, octal or hexadecimal to a
number in the decimal system.
5. Convert a number in the decimal system to a number in
binary, octal and hexadecimal.
6. Convert a number in binary to octal and vice versa.
7. Convert a number in binary to hexadecimal and vice versa.
Introduction
 A Number System (or system of numeration) is a writing
system for expressing numbers, that is a mathematical
notation for representing numbers of a given set,
using digits or other symbols in a consistent manner.
 Ideally, a numeral system will Represent a useful set of
numbers (e.g. all integers, or rational numbers) Give
every number represented a unique representation (or at
least a standard representation)
 Reflect the algebraic and arithmetic structure of the
numbers.
Types of Number System
I. Positional Number
II. Non-Positional Number
 Positional Number-
 In a Positional Number System there are only a few symbols called
represent different values, depending on the position they occupy in a
number. The value of each digit in such a number is determined by three
considerations
a. The digit itself
b. The position of the digit in the number
c. The base of the number system(where
base is defined as the total number of
digits available in the number system)
 Non-positional Number-
 In This system we have symbols such as I for 1,II for 2,III for 3 etc.
Each symbols represents the same value regardless of its position in a
number and to find the value of a number.
Types of positonal Number System
The Binary System(base 2)
 The word binary is derived from the Latin root
bini (or two by two). In this system the base b
= 2 and we use only two symbols
S ={1,0}
 The symbols in this system are often
referred to as binary digits or bits (binary
digit).
The Decimal System(base 10)
 The word decimal is derived from the Latin
root decem (ten). In this system the base b =
10 and we use ten symbols
 s={0,1,2,3,4,5,6,7,8,9}
 Example:-
The Octal System(base 8)
 The word octal is derived from the Latin root octo
(eight). In this system the base b = 8 and we use
eight symbols to represent a number. The set of
symbols is
 S={0,1,2,3,4,5,6,7}
 The base of the octal number system is eight,
so each position of the octal number
represents a successive power of eight. From
right to left
The Hexadecimal System(base 16)
 The word hexadecimal is derived from the Greek
root hex (six) and the Latin root decem (ten). In
this system the base b = 16 and we use sixteen
symbols to represent a number. The set of
symbols is

 S={0,1,2,3,4,5,6,7,8,9,A,B,C,D,E,F}
 Note that the symbols A, B, C, D, E, F are
equivalent to 10, 11, 12, 13, 14, and 15 respectively.
The symbols in this system are often referred to as
hexadecimal digits.
Common Number Systems
System Base Symbols
Used by
humans?
Used in
computer
s?
Decimal 10 0, 1, … 9 Yes No
Binary 2 0, 1 No Yes
Octal 8 0, 1, … 7 No No
Hexa-
decimal
16 0, 1, … 9,
A, B, …
F
No No
Quantities/Counting (1 of 2)
Decimal Binary Octal
Hexa-
decimal
0 0 0 0
1 1 1 1
2 10 2 2
3 11 3 3
4 100 4 4
5 101 5 5
6 110 6 6
7 111 7 7
Quantities/Counting (2 of 2)
Decimal Binary Octal
Hexa-
decimal
8 1000 10 8
9 1001 11 9
10 1010 12 A
11 1011 13 B
12 1100 14 C
13 1101 15 D
14 1110 16 E
15 1111 17 F
Etc
Conversion Among Bases
 The possibilities:
Decimal
Octal
Binary Hexadecimal
Quick Example
 2510 = 110012 = 318 = 1916
Base
Binary to Decimal
 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
Example
 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
Octal to Decimal
 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
Example
 7248 => 4 x 80 = 4
2 x 81 = 16
7 x 82 = 448
46810
Hexadecimal to Decimal
 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
Example
 ABC16=>
 C x 160 = 12x1 = 12
B x 161 = 11x16 = 176
A x 162 = 10x256= 2560
274810
Decimal to 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.
Example
12510 = ?2
2 125
62 12
31 02
15 12
7 12
3 12
1 1
2
1 1
12510 = 11111012
Octal to Binary
 Technique
 Convert each octal digit to a 3-bit equivalent binary
representation
Example
7058 = ?2
7 0 5
111 000 101
7058 = 1110001012
Hexadecimal to Binary
 Technique
 Convert each hexadecimal digit to a 4-bit equivalent
binary representation
Example
10AF16 = ?2
1 0 A F
0001 0000 1010 1111
10AF16 = 00010000101011112
Decimal to Octal
 Technique
 Divide by 8
 Keep track of the remainder
Example
123410 = ?8
8 1234
154 2
8
19 2
8
2 3
8
0 2
123410 = 23228
Decimal to Hexadecimal
 Technique
 Divide by 16
 Keep track of the remainder
Example
16 1234 2
16 77 13=D
16 4
123410 = ?16
123410 = 4D216
Binary to Octal
 Technique
 Group bits in threes, starting on right
 Convert to octal digits
Example
10110101112 = ?8
1 011 010 111
1 3 2 7
10110101112 = 13278
Binary to Hexadecimal
 Technique
 Group bits in fours, starting on right
 Convert to hexadecimal digits
Example
10101110112 = ?16
10 1011 1011
2 B B
10101110112 = 2BB16
Octal to Hexadecimal
 Technique
 Use binary as an intermediary
Example
10768 = ?16
1 0 7 6
001 000 111 110
2 3 E
10768 = 23E16
Hexadecimal to Octal
 Technique
 Use binary as an intermediary
Example
1F0C16 = ?8
1 F 0 C
0001 1111 0000 1100
0 1 7 4 1 4
1F0C16 = 174148
Fractions
 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
Fractions
 Decimal to binary
3.14579
.14579
x 2
0.29158
x 2
0.58316
x 2
1.16632
x 2
0.33264
x 2
0.66528
x 2
1.33056
etc.
11.001001...
Thankyou…………

More Related Content

What's hot

Binary addition.pptx
Binary addition.pptxBinary addition.pptx
Binary addition.pptxPooja Dixit
 
Number system
Number systemNumber system
Number systemkashee99
 
Hexadecimal to octal conversion
Hexadecimal to octal conversionHexadecimal to octal conversion
Hexadecimal to octal conversionMukesh Tekwani
 
binary number system
 binary number system binary number system
binary number systemvishal gupta
 
Decimal number system
Decimal number systemDecimal number system
Decimal number systemNisarg Amin
 
Number System in CoMpUtEr
Number System in CoMpUtErNumber System in CoMpUtEr
Number System in CoMpUtErvishal bansal
 
11 octal number system
11   octal number system11   octal number system
11 octal number systemLee Chadwick
 
PPT ON NUMBER SYSTEM
PPT ON NUMBER SYSTEMPPT ON NUMBER SYSTEM
PPT ON NUMBER SYSTEMRishabh Kanth
 
Number system
Number systemNumber system
Number systemSajib
 
10 hexadecimal number system
10   hexadecimal number system10   hexadecimal number system
10 hexadecimal number systemLee Chadwick
 
Number system in Digital Electronics
Number system in Digital ElectronicsNumber system in Digital Electronics
Number system in Digital ElectronicsJanki Shah
 
Lecture-2(2): Number System & Conversion
Lecture-2(2): Number System & ConversionLecture-2(2): Number System & Conversion
Lecture-2(2): Number System & ConversionMubashir Ali
 

What's hot (20)

Number Systems
Number SystemsNumber Systems
Number Systems
 
Binary addition.pptx
Binary addition.pptxBinary addition.pptx
Binary addition.pptx
 
Number system
Number systemNumber system
Number system
 
Hexadecimal to octal conversion
Hexadecimal to octal conversionHexadecimal to octal conversion
Hexadecimal to octal conversion
 
binary number system
 binary number system binary number system
binary number system
 
Binary codes
Binary codesBinary codes
Binary codes
 
Decimal number system
Decimal number systemDecimal number system
Decimal number system
 
Number System in CoMpUtEr
Number System in CoMpUtErNumber System in CoMpUtEr
Number System in CoMpUtEr
 
11 octal number system
11   octal number system11   octal number system
11 octal number system
 
Data Representation
Data RepresentationData Representation
Data Representation
 
PPT ON NUMBER SYSTEM
PPT ON NUMBER SYSTEMPPT ON NUMBER SYSTEM
PPT ON NUMBER SYSTEM
 
Basic of number system
Basic of number systemBasic of number system
Basic of number system
 
Bcd
BcdBcd
Bcd
 
Number System
Number SystemNumber System
Number System
 
Number system
Number systemNumber system
Number system
 
What is Gray Code?
What is Gray Code? What is Gray Code?
What is Gray Code?
 
10 hexadecimal number system
10   hexadecimal number system10   hexadecimal number system
10 hexadecimal number system
 
Number system in Digital Electronics
Number system in Digital ElectronicsNumber system in Digital Electronics
Number system in Digital Electronics
 
Number System
Number SystemNumber System
Number System
 
Lecture-2(2): Number System & Conversion
Lecture-2(2): Number System & ConversionLecture-2(2): Number System & Conversion
Lecture-2(2): Number System & Conversion
 

Similar to Number system....

Similar to Number system.... (20)

Chapter two FHI.pptx
Chapter two FHI.pptxChapter two FHI.pptx
Chapter two FHI.pptx
 
Number system by ammar nawab
Number system by ammar nawabNumber system by ammar nawab
Number system by ammar nawab
 
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
 
Lec 02
Lec 02Lec 02
Lec 02
 
Number systems
Number systemsNumber systems
Number systems
 
5871320.ppt
5871320.ppt5871320.ppt
5871320.ppt
 
Digital Electronics Notes.pdf
Digital Electronics Notes.pdfDigital Electronics Notes.pdf
Digital Electronics Notes.pdf
 
01.number systems
01.number systems01.number systems
01.number systems
 
number system
number systemnumber system
number system
 
Number systems and conversions
Number systems and conversionsNumber systems and conversions
Number systems and conversions
 
Chapter 3.pptx
Chapter 3.pptxChapter 3.pptx
Chapter 3.pptx
 
Introduction to Information Technology Lecture 2
Introduction to Information Technology Lecture 2Introduction to Information Technology Lecture 2
Introduction to Information Technology Lecture 2
 
Number system
Number systemNumber system
Number system
 
Number system and their conversion
Number system and their conversionNumber system and their conversion
Number system and their conversion
 
NUMBER SYSTEM.pptx
NUMBER SYSTEM.pptxNUMBER SYSTEM.pptx
NUMBER SYSTEM.pptx
 
Data representation
Data representationData representation
Data representation
 
Number systems r002
Number systems  r002Number systems  r002
Number systems r002
 
Chapter 2.1 introduction to number system
Chapter 2.1 introduction to number systemChapter 2.1 introduction to number system
Chapter 2.1 introduction to number system
 
Cit 1101 lec 02
Cit 1101 lec 02Cit 1101 lec 02
Cit 1101 lec 02
 

More from mshoaib15

Msc prev completed
Msc prev completedMsc prev completed
Msc prev completedmshoaib15
 
Msc prev updated
Msc prev updatedMsc prev updated
Msc prev updatedmshoaib15
 
Msc chemistry previous
Msc chemistry previousMsc chemistry previous
Msc chemistry previousmshoaib15
 
Bsc math previous exam quetions
Bsc math previous exam quetionsBsc math previous exam quetions
Bsc math previous exam quetionsmshoaib15
 
Computer lab (programs)
Computer lab (programs)Computer lab (programs)
Computer lab (programs)mshoaib15
 
What is algorithm
What is algorithmWhat is algorithm
What is algorithmmshoaib15
 
Boolean expression org.
Boolean expression org.Boolean expression org.
Boolean expression org.mshoaib15
 

More from mshoaib15 (8)

Msc prev completed
Msc prev completedMsc prev completed
Msc prev completed
 
Msc prev updated
Msc prev updatedMsc prev updated
Msc prev updated
 
Msc chemistry previous
Msc chemistry previousMsc chemistry previous
Msc chemistry previous
 
Bsc math previous exam quetions
Bsc math previous exam quetionsBsc math previous exam quetions
Bsc math previous exam quetions
 
Function
FunctionFunction
Function
 
Computer lab (programs)
Computer lab (programs)Computer lab (programs)
Computer lab (programs)
 
What is algorithm
What is algorithmWhat is algorithm
What is algorithm
 
Boolean expression org.
Boolean expression org.Boolean expression org.
Boolean expression org.
 

Recently uploaded

Apidays Singapore 2024 - Scalable LLM APIs for AI and Generative AI Applicati...
Apidays Singapore 2024 - Scalable LLM APIs for AI and Generative AI Applicati...Apidays Singapore 2024 - Scalable LLM APIs for AI and Generative AI Applicati...
Apidays Singapore 2024 - Scalable LLM APIs for AI and Generative AI Applicati...apidays
 
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 connectorsNanddeep Nachan
 
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 businesspanagenda
 
Corporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxCorporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxRustici Software
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Drew Madelung
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native ApplicationsWSO2
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Scriptwesley chun
 
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 DiscoveryTrustArc
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...apidays
 
Navi Mumbai Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Navi Mumbai Call Girls 🥰 8617370543 Service Offer VIP Hot ModelNavi Mumbai Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Navi Mumbai Call Girls 🥰 8617370543 Service Offer VIP Hot ModelDeepika Singh
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Miguel Araújo
 
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...Zilliz
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobeapidays
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerThousandEyes
 
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 FMESafe Software
 
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, ...apidays
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodJuan lago vázquez
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MIND CTI
 
FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024The Digital Insurer
 

Recently uploaded (20)

Apidays Singapore 2024 - Scalable LLM APIs for AI and Generative AI Applicati...
Apidays Singapore 2024 - Scalable LLM APIs for AI and Generative AI Applicati...Apidays Singapore 2024 - Scalable LLM APIs for AI and Generative AI Applicati...
Apidays Singapore 2024 - Scalable LLM APIs for AI and Generative AI Applicati...
 
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
 
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
 
Corporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxCorporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptx
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
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 Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
Navi Mumbai Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Navi Mumbai Call Girls 🥰 8617370543 Service Offer VIP Hot ModelNavi Mumbai Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Navi Mumbai Call Girls 🥰 8617370543 Service Offer VIP Hot Model
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
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 - 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, ...
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
 
FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024
 

Number system....

  • 2. Objective 1. Understand the concept of number systems. 2. Distinguish between non-positional and positional number systems. 3. Describe the decimal, binary, OCTAL and HEXADECIMAL system. 4. Convert a number in binary, octal or hexadecimal to a number in the decimal system. 5. Convert a number in the decimal system to a number in binary, octal and hexadecimal. 6. Convert a number in binary to octal and vice versa. 7. Convert a number in binary to hexadecimal and vice versa.
  • 3. Introduction  A Number System (or system of numeration) is a writing system for expressing numbers, that is a mathematical notation for representing numbers of a given set, using digits or other symbols in a consistent manner.  Ideally, a numeral system will Represent a useful set of numbers (e.g. all integers, or rational numbers) Give every number represented a unique representation (or at least a standard representation)  Reflect the algebraic and arithmetic structure of the numbers.
  • 4.
  • 5. Types of Number System I. Positional Number II. Non-Positional Number  Positional Number-  In a Positional Number System there are only a few symbols called represent different values, depending on the position they occupy in a number. The value of each digit in such a number is determined by three considerations a. The digit itself b. The position of the digit in the number c. The base of the number system(where base is defined as the total number of digits available in the number system)  Non-positional Number-  In This system we have symbols such as I for 1,II for 2,III for 3 etc. Each symbols represents the same value regardless of its position in a number and to find the value of a number.
  • 6. Types of positonal Number System
  • 7. The Binary System(base 2)  The word binary is derived from the Latin root bini (or two by two). In this system the base b = 2 and we use only two symbols S ={1,0}  The symbols in this system are often referred to as binary digits or bits (binary digit).
  • 8. The Decimal System(base 10)  The word decimal is derived from the Latin root decem (ten). In this system the base b = 10 and we use ten symbols  s={0,1,2,3,4,5,6,7,8,9}  Example:-
  • 9. The Octal System(base 8)  The word octal is derived from the Latin root octo (eight). In this system the base b = 8 and we use eight symbols to represent a number. The set of symbols is  S={0,1,2,3,4,5,6,7}  The base of the octal number system is eight, so each position of the octal number represents a successive power of eight. From right to left
  • 10. The Hexadecimal System(base 16)  The word hexadecimal is derived from the Greek root hex (six) and the Latin root decem (ten). In this system the base b = 16 and we use sixteen symbols to represent a number. The set of symbols is   S={0,1,2,3,4,5,6,7,8,9,A,B,C,D,E,F}  Note that the symbols A, B, C, D, E, F are equivalent to 10, 11, 12, 13, 14, and 15 respectively. The symbols in this system are often referred to as hexadecimal digits.
  • 11. Common Number Systems System Base Symbols Used by humans? Used in computer s? Decimal 10 0, 1, … 9 Yes No Binary 2 0, 1 No Yes Octal 8 0, 1, … 7 No No Hexa- decimal 16 0, 1, … 9, A, B, … F No No
  • 12. Quantities/Counting (1 of 2) Decimal Binary Octal Hexa- decimal 0 0 0 0 1 1 1 1 2 10 2 2 3 11 3 3 4 100 4 4 5 101 5 5 6 110 6 6 7 111 7 7
  • 13. Quantities/Counting (2 of 2) Decimal Binary Octal Hexa- decimal 8 1000 10 8 9 1001 11 9 10 1010 12 A 11 1011 13 B 12 1100 14 C 13 1101 15 D 14 1110 16 E 15 1111 17 F Etc
  • 14. Conversion Among Bases  The possibilities: Decimal Octal Binary Hexadecimal
  • 15. Quick Example  2510 = 110012 = 318 = 1916 Base
  • 16. Binary to Decimal  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
  • 17. Example  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
  • 18. Octal to Decimal  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
  • 19. Example  7248 => 4 x 80 = 4 2 x 81 = 16 7 x 82 = 448 46810
  • 20. Hexadecimal to Decimal  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
  • 21. Example  ABC16=>  C x 160 = 12x1 = 12 B x 161 = 11x16 = 176 A x 162 = 10x256= 2560 274810
  • 22. Decimal to 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.
  • 23. Example 12510 = ?2 2 125 62 12 31 02 15 12 7 12 3 12 1 1 2 1 1 12510 = 11111012
  • 24. Octal to Binary  Technique  Convert each octal digit to a 3-bit equivalent binary representation
  • 25. Example 7058 = ?2 7 0 5 111 000 101 7058 = 1110001012
  • 26. Hexadecimal to Binary  Technique  Convert each hexadecimal digit to a 4-bit equivalent binary representation
  • 27. Example 10AF16 = ?2 1 0 A F 0001 0000 1010 1111 10AF16 = 00010000101011112
  • 28. Decimal to Octal  Technique  Divide by 8  Keep track of the remainder
  • 29. Example 123410 = ?8 8 1234 154 2 8 19 2 8 2 3 8 0 2 123410 = 23228
  • 30. Decimal to Hexadecimal  Technique  Divide by 16  Keep track of the remainder
  • 31. Example 16 1234 2 16 77 13=D 16 4 123410 = ?16 123410 = 4D216
  • 32. Binary to Octal  Technique  Group bits in threes, starting on right  Convert to octal digits
  • 33. Example 10110101112 = ?8 1 011 010 111 1 3 2 7 10110101112 = 13278
  • 34. Binary to Hexadecimal  Technique  Group bits in fours, starting on right  Convert to hexadecimal digits
  • 35. Example 10101110112 = ?16 10 1011 1011 2 B B 10101110112 = 2BB16
  • 36. Octal to Hexadecimal  Technique  Use binary as an intermediary
  • 37. Example 10768 = ?16 1 0 7 6 001 000 111 110 2 3 E 10768 = 23E16
  • 38. Hexadecimal to Octal  Technique  Use binary as an intermediary
  • 39. Example 1F0C16 = ?8 1 F 0 C 0001 1111 0000 1100 0 1 7 4 1 4 1F0C16 = 174148
  • 40. Fractions  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
  • 41. Fractions  Decimal to binary 3.14579 .14579 x 2 0.29158 x 2 0.58316 x 2 1.16632 x 2 0.33264 x 2 0.66528 x 2 1.33056 etc. 11.001001...