SlideShare a Scribd company logo
2.1
NumberNumber
SystemsSystems
2.2
2-1 INTRODUCTION2-1 INTRODUCTION
AA number systemnumber system defines how a number can bedefines how a number can be
represented using distinct symbols. A number can berepresented using distinct symbols. A number can be
represented differently in different systems. For example,represented differently in different systems. For example,
the two numbers (2A)the two numbers (2A)1616 and (52)and (52)88 both refer to the sameboth refer to the same
quantity, (42)quantity, (42)1010, but their representations are different., but their representations are different.
.There are 4 types of number system.There are 4 types of number system
 Binary number system(11100)Binary number system(11100)22
 Decimal Number system(783)10Decimal Number system(783)10
 Octal Number system(67)8Octal Number system(67)8
 Hexa Decimal Number system(ABCD)16Hexa Decimal Number system(ABCD)16
2.3
1- Binary Number system: Binary Number system are those number system, which having
base 2. it means it can contain only two numbers that is 0
and 1 for example (0101010)2.
2- octal number system: The octal number systems are those number system, which having
base 8. it means I can contain 8 number (0,1,2,3,4,5,6,7) for example
(765)8.
3- Decimal Number system: The Decimal number systems are those number system, which having
base 10. it means It can contain 8 number (0,1,2,3,4,5,6,7,8,9) for
example (7659)10.
4- Hexa Decimal number system: The octal number systems are those number system, which
having base 16. it means It can contain 8 number
(0,1,2,3,4,5,6,7,8,9,A,B,C,D,E,F) for example (765DE)16.
Types of Number systemTypes of Number system
2.4
S = {0, 1, 2, 3, 4, 5, 6, 7, 8, 9}
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
The symbols in this system are often referred to as decimal
digits or just digits.
2.5
Example 2.1
The following shows the place values for the integer +224 in theThe following shows the place values for the integer +224 in the
decimal system.decimal system.
Note that the digit 2 in position 1 has the value 20, but the sameNote that the digit 2 in position 1 has the value 20, but the same
digit in position 2 has the value 200. Also note that we normallydigit in position 2 has the value 200. Also note that we normally
drop the plus sign, but it is implicit.drop the plus sign, but it is implicit.
2.6
Example 2.2
The following shows the place values for the decimal numberThe following shows the place values for the decimal number
−7508. We have used 1, 10, 100, and 1000 instead of powers of−7508. We have used 1, 10, 100, and 1000 instead of powers of
10.10.
Note that the digit 2 in position 1 has the value 20, but the sameNote that the digit 2 in position 1 has the value 20, but the same
digit in position 2 has the value 200. Also note that we normallydigit in position 2 has the value 200. Also note that we normally
drop the plus sign, but it is implicit.drop the plus sign, but it is implicit.
( ) Values
2.7
Reals
Example 2.3
The following shows the place values for the real number +24.13.The following shows the place values for the real number +24.13.
2.8
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,
The binary system (base 2)
S = {0, 1}
The symbols in this system are often referred to as binary
digits or bits (binary digit).
2.9
Example 2.4
The following shows that the number (11001)The following shows that the number (11001)22 in binary is thein binary is the
same as 25 in decimal. The subscript 2 shows that the base is 2.same as 25 in decimal. The subscript 2 shows that the base is 2.
The equivalent decimal number is N = 16 + 8 + 0 + 0 + 1 = 25.The equivalent decimal number is N = 16 + 8 + 0 + 0 + 1 = 25.
2.10
Reals
Example 2.5
The following shows that the number (101.11)The following shows that the number (101.11)22 in binary is equalin binary is equal
to the number 5.75 in decimal.to the number 5.75 in decimal.
2.11
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
The hexadecimal system (base 16)
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.
2.12
Example 2.6
The following shows that the number (2AE)16 in hexadecimal isThe following shows that the number (2AE)16 in hexadecimal is
equivalent to 686 in decimal.equivalent to 686 in decimal.
The equivalent decimal number is N = 512 + 160 + 14 = 686.The equivalent decimal number is N = 512 + 160 + 14 = 686.
2.13
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
The octal system (base 8)
S = {0, 1, 2, 3, 4, 5, 6, 7}
2.14
Example 2.7
The following shows that the number (1256)The following shows that the number (1256)88 in octal is the samein octal is the same
as 686 in decimal.as 686 in decimal.
Note that the decimal number is N = 512 + 128 + 40 + 6 = 686.Note that the decimal number is N = 512 + 128 + 40 + 6 = 686.
2.15
Table 2.1 shows a summary of the four positional number
systems discussed in this chapter.
Summary of the four positional systems
2.16
Table 2.2 shows how the number 0 to 15 is represented in
different systems.
2.17
We need to know how to convert a number in one system to
the equivalent number in another system. Since the decimal
system is more familiar than the other systems, we first show
how to covert from any base to decimal. Then we show how
to convert from decimal to any base. Finally, we show how
we can easily convert from binary to hexadecimal or octal
and vice versa.
Conversion
2.18
Any base to decimal conversion
Figure 2.5 Converting other bases to decimal
2.19
Example 2.8
The following shows how to convert the binary number (110.11)The following shows how to convert the binary number (110.11)22
to decimal: (110.11)to decimal: (110.11)22 = 6.75.= 6.75.
2.20
Example 2.9
The following shows how to convert the hexadecimal numberThe following shows how to convert the hexadecimal number
(1A.23)(1A.23)1616 to decimal.to decimal.
Note that the result in the decimal notation is not exact, becauseNote that the result in the decimal notation is not exact, because
3 × 163 × 16−2−2
= 0.01171875. We have rounded this value to three= 0.01171875. We have rounded this value to three
digits (0.012).digits (0.012).
2.21
Example 2.10
The following shows how to convert (23.17)The following shows how to convert (23.17)88 to decimal.to decimal.
This means that (23.17)8 ≈ 19.234 in decimal. Again, we haveThis means that (23.17)8 ≈ 19.234 in decimal. Again, we have
rounded up 7 × 8rounded up 7 × 8−2−2
= 0.109375.= 0.109375.
2.22
Example 2.17
An alternative method for converting a small decimal integerAn alternative method for converting a small decimal integer
(usually less than 256) to binary is to break the number as the(usually less than 256) to binary is to break the number as the
sum of numbers that are equivalent to the binary place valuessum of numbers that are equivalent to the binary place values
shown:shown:
2.23
Example 2.18
A similar method can be used to convert a decimal fraction toA similar method can be used to convert a decimal fraction to
binary when the denominator is a power of two:binary when the denominator is a power of two:
The answer is then (0.011011)The answer is then (0.011011)22
2.24
Example 2.19
Show the hexadecimal equivalent of the binary numberShow the hexadecimal equivalent of the binary number
(110011100010)(110011100010)22..
SolutionSolution
We first arrange the binary number in 4-bit patterns:We first arrange the binary number in 4-bit patterns:
100 1110 0010100 1110 0010
Note that the leftmost pattern can have one to four bits. We thenNote that the leftmost pattern can have one to four bits. We then
use the equivalent of each pattern shown in Table 2.2 on page 25use the equivalent of each pattern shown in Table 2.2 on page 25
to change the number to hexadecimal: (4E2)16.to change the number to hexadecimal: (4E2)16.
2.25
Example 2.20
What is the binary equivalent of (24C)What is the binary equivalent of (24C)1616??
SolutionSolution
Each hexadecimal digit is converted to 4-bit patterns:Each hexadecimal digit is converted to 4-bit patterns:
2 → 0010, 4 → 0100, and C →2 → 0010, 4 → 0100, and C →
11001100
The result is (001001001100)The result is (001001001100)22..
2.26
Example 2.21
Show the octal equivalent of the binary number (101110010)Show the octal equivalent of the binary number (101110010)22..
SolutionSolution
Each group of three bits is translated into one octal digit. TheEach group of three bits is translated into one octal digit. The
equivalent of each 3-bit group is shown in Table 2.2 on page 25.equivalent of each 3-bit group is shown in Table 2.2 on page 25.
The result is (562)The result is (562)88..
101 110 010101 110 010
2.27
Example 2.22
What is the binary equivalent of for (24)What is the binary equivalent of for (24)88??
SolutionSolution
Write each octal digit as its equivalent bit pattern to getWrite each octal digit as its equivalent bit pattern to get
2 → 010 and 4 → 1002 → 010 and 4 → 100
The result is (010100)The result is (010100)22..
2.28
Octal-hexadecimal conversion
Figure 2.12 Octal to hexadecimal and hexadecimal to octal conversion

More Related Content

What's hot

Number system....
Number system....Number system....
Number system....mshoaib15
 
Number system
Number systemNumber system
Number system
Suraj Bora
 
Number system
Number systemNumber system
Number system
Darpan Chelani
 
binary number system
 binary number system binary number system
binary number system
vishal gupta
 
Hexadecimal to octal conversion
Hexadecimal to octal conversionHexadecimal to octal conversion
Hexadecimal to octal conversion
Mukesh Tekwani
 
Number system utm notes
Number system utm notesNumber system utm notes
Number system utm notes
Kurenai Ryu
 
Introduction number systems and conversion
 Introduction number systems and conversion Introduction number systems and conversion
Introduction number systems and conversionkanyuma jitjumnong
 
Binary number systems
Binary number systemsBinary number systems
Binary number systems
KULDEEP MATHUR
 
Number system
Number systemNumber system
Number system
ankush9927
 
Number system computer fundamental
 Number  system computer fundamental  Number  system computer fundamental
Number system computer fundamental
Aman anand kumar
 
Integer Representation
Integer RepresentationInteger Representation
Integer Representationgavhays
 
Number system
Number systemNumber system
Number system
Palash Sachan
 
Number System
Number SystemNumber System
Number System
Meenakshi Paul
 
PPT ON NUMBER SYSTEM
PPT ON NUMBER SYSTEMPPT ON NUMBER SYSTEM
PPT ON NUMBER SYSTEM
Rishabh Kanth
 
Number System
Number SystemNumber System
Number System
Zahid Rajeel
 
Number+system (1)
Number+system (1)Number+system (1)
Number+system (1)
Bilal Maqbool ツ
 
Number System
Number SystemNumber System
Number Systemitutor
 
digital logic design number system
digital logic design number systemdigital logic design number system
digital logic design number system
Nallapati Anindra
 
Conversion of number system
Conversion of number systemConversion of number system
Conversion of number system
University of Potsdam
 

What's hot (20)

Number system....
Number system....Number system....
Number system....
 
Number system
Number systemNumber system
Number system
 
Number system
Number systemNumber system
Number system
 
binary number system
 binary number system binary number system
binary number system
 
Hexadecimal to octal conversion
Hexadecimal to octal conversionHexadecimal to octal conversion
Hexadecimal to octal conversion
 
Number system utm notes
Number system utm notesNumber system utm notes
Number system utm notes
 
Introduction number systems and conversion
 Introduction number systems and conversion Introduction number systems and conversion
Introduction number systems and conversion
 
Binary number systems
Binary number systemsBinary number systems
Binary number systems
 
Number system
Number systemNumber system
Number system
 
Number system computer fundamental
 Number  system computer fundamental  Number  system computer fundamental
Number system computer fundamental
 
Integer Representation
Integer RepresentationInteger Representation
Integer Representation
 
Number system
Number systemNumber system
Number system
 
Number system conversion
Number system conversionNumber system conversion
Number system conversion
 
Number System
Number SystemNumber System
Number System
 
PPT ON NUMBER SYSTEM
PPT ON NUMBER SYSTEMPPT ON NUMBER SYSTEM
PPT ON NUMBER SYSTEM
 
Number System
Number SystemNumber System
Number System
 
Number+system (1)
Number+system (1)Number+system (1)
Number+system (1)
 
Number System
Number SystemNumber System
Number System
 
digital logic design number system
digital logic design number systemdigital logic design number system
digital logic design number system
 
Conversion of number system
Conversion of number systemConversion of number system
Conversion of number system
 

Similar to Number system

Number system 1
Number system 1Number system 1
Number system 1
Pawan Mishra
 
Chap02_1473751047_598100.ppt
Chap02_1473751047_598100.pptChap02_1473751047_598100.ppt
Chap02_1473751047_598100.ppt
NguyenThiTuBinhK17HL
 
Number system and conversions between different number systems
Number system and conversions between different number systemsNumber system and conversions between different number systems
Number system and conversions between different number systems
wafaashalash
 
Data representation and boolean algebra
Data representation and boolean algebraData representation and boolean algebra
Data representation and boolean algebra
gourav kottawar
 
Number system by ammar nawab
Number system by ammar nawabNumber system by ammar nawab
Number system by ammar nawab
Ammar_n
 
Number system
Number systemNumber system
Number system
Bikash Kumar
 
FYBSC IT Digital Electronics Unit I Chapter I Number System and Binary Arithm...
FYBSC IT Digital Electronics Unit I Chapter I Number System and Binary Arithm...FYBSC IT Digital Electronics Unit I Chapter I Number System and Binary Arithm...
FYBSC IT Digital Electronics Unit I Chapter I Number System and Binary Arithm...
Arti Parab Academics
 
NUMBER SYSTEM.pptx
NUMBER SYSTEM.pptxNUMBER SYSTEM.pptx
NUMBER SYSTEM.pptx
AnaMarieFrane
 
computer Unit 2
computer Unit 2computer Unit 2
computer Unit 2
Aqeel Rehman
 
Chapter 3.pptx
Chapter 3.pptxChapter 3.pptx
Chapter 3.pptx
Wollo UNiversity
 
Data representation
Data representationData representation
Data representation
Manish Kumar
 
W2 Chapter 2A Notes CCB1223 Digital Logic.pdf
W2 Chapter 2A Notes CCB1223 Digital Logic.pdfW2 Chapter 2A Notes CCB1223 Digital Logic.pdf
W2 Chapter 2A Notes CCB1223 Digital Logic.pdf
MOHDZAMRIBINIBRAHIM1
 
Number System and Boolean Algebra
Number System and Boolean AlgebraNumber System and Boolean Algebra
Number System and Boolean Algebra
AMIE(I) Study Circle
 
Data repersentation.
Data repersentation.Data repersentation.
Data repersentation.
Ritesh Saini
 
Chapter two FHI.pptx
Chapter two FHI.pptxChapter two FHI.pptx
Chapter two FHI.pptx
ODAATUBE1
 
Number system
Number systemNumber system
Number system
Iqra Yasin
 
chapter2.pptx electrical engineering for student
chapter2.pptx electrical engineering for studentchapter2.pptx electrical engineering for student
chapter2.pptx electrical engineering for student
MidhaksaBelay
 
DATA PRESENTATION
DATA PRESENTATIONDATA PRESENTATION
DATA PRESENTATION
shahzadebaujiti
 
numbersystem-150506052854-conversion-gate02 (3).pptx
numbersystem-150506052854-conversion-gate02 (3).pptxnumbersystem-150506052854-conversion-gate02 (3).pptx
numbersystem-150506052854-conversion-gate02 (3).pptx
anilmallah76
 
Module 1 number systems and code1
Module 1  number systems and code1Module 1  number systems and code1
Module 1 number systems and code1
Deepak John
 

Similar to Number system (20)

Number system 1
Number system 1Number system 1
Number system 1
 
Chap02_1473751047_598100.ppt
Chap02_1473751047_598100.pptChap02_1473751047_598100.ppt
Chap02_1473751047_598100.ppt
 
Number system and conversions between different number systems
Number system and conversions between different number systemsNumber system and conversions between different number systems
Number system and conversions between different number systems
 
Data representation and boolean algebra
Data representation and boolean algebraData representation and boolean algebra
Data representation and boolean algebra
 
Number system by ammar nawab
Number system by ammar nawabNumber system by ammar nawab
Number system by ammar nawab
 
Number system
Number systemNumber system
Number system
 
FYBSC IT Digital Electronics Unit I Chapter I Number System and Binary Arithm...
FYBSC IT Digital Electronics Unit I Chapter I Number System and Binary Arithm...FYBSC IT Digital Electronics Unit I Chapter I Number System and Binary Arithm...
FYBSC IT Digital Electronics Unit I Chapter I Number System and Binary Arithm...
 
NUMBER SYSTEM.pptx
NUMBER SYSTEM.pptxNUMBER SYSTEM.pptx
NUMBER SYSTEM.pptx
 
computer Unit 2
computer Unit 2computer Unit 2
computer Unit 2
 
Chapter 3.pptx
Chapter 3.pptxChapter 3.pptx
Chapter 3.pptx
 
Data representation
Data representationData representation
Data representation
 
W2 Chapter 2A Notes CCB1223 Digital Logic.pdf
W2 Chapter 2A Notes CCB1223 Digital Logic.pdfW2 Chapter 2A Notes CCB1223 Digital Logic.pdf
W2 Chapter 2A Notes CCB1223 Digital Logic.pdf
 
Number System and Boolean Algebra
Number System and Boolean AlgebraNumber System and Boolean Algebra
Number System and Boolean Algebra
 
Data repersentation.
Data repersentation.Data repersentation.
Data repersentation.
 
Chapter two FHI.pptx
Chapter two FHI.pptxChapter two FHI.pptx
Chapter two FHI.pptx
 
Number system
Number systemNumber system
Number system
 
chapter2.pptx electrical engineering for student
chapter2.pptx electrical engineering for studentchapter2.pptx electrical engineering for student
chapter2.pptx electrical engineering for student
 
DATA PRESENTATION
DATA PRESENTATIONDATA PRESENTATION
DATA PRESENTATION
 
numbersystem-150506052854-conversion-gate02 (3).pptx
numbersystem-150506052854-conversion-gate02 (3).pptxnumbersystem-150506052854-conversion-gate02 (3).pptx
numbersystem-150506052854-conversion-gate02 (3).pptx
 
Module 1 number systems and code1
Module 1  number systems and code1Module 1  number systems and code1
Module 1 number systems and code1
 

More from RajThakuri

Share Market.pptx
Share Market.pptxShare Market.pptx
Share Market.pptx
RajThakuri
 
Statistical table
Statistical tableStatistical table
Statistical table
RajThakuri
 
All Computer shortcuts for beginners....
All Computer shortcuts for beginners....All Computer shortcuts for beginners....
All Computer shortcuts for beginners....
RajThakuri
 
Pdf. learn html.....html_course_(basic___advance_)_for_7_days
Pdf. learn html.....html_course_(basic___advance_)_for_7_daysPdf. learn html.....html_course_(basic___advance_)_for_7_days
Pdf. learn html.....html_course_(basic___advance_)_for_7_days
RajThakuri
 
Programming language
Programming languageProgramming language
Programming language
RajThakuri
 
Networking
NetworkingNetworking
Networking
RajThakuri
 
Software
SoftwareSoftware
Software
RajThakuri
 
Operating system
Operating systemOperating system
Operating system
RajThakuri
 
Output devices
Output devicesOutput devices
Output devices
RajThakuri
 
Input devices
Input devicesInput devices
Input devices
RajThakuri
 
Internet
InternetInternet
Internet
RajThakuri
 
Computer memory & Memory Storage Devices.
Computer memory & Memory Storage Devices.Computer memory & Memory Storage Devices.
Computer memory & Memory Storage Devices.
RajThakuri
 
Artificial inteligence
Artificial inteligenceArtificial inteligence
Artificial inteligence
RajThakuri
 
Testing of hypotheses
Testing of hypothesesTesting of hypotheses
Testing of hypotheses
RajThakuri
 
Formulas to measure_central_tendency_(mean,_median,_mode)
Formulas to measure_central_tendency_(mean,_median,_mode)Formulas to measure_central_tendency_(mean,_median,_mode)
Formulas to measure_central_tendency_(mean,_median,_mode)
RajThakuri
 
Leadership, its styles_&_leadership_theories...
Leadership, its styles_&_leadership_theories...Leadership, its styles_&_leadership_theories...
Leadership, its styles_&_leadership_theories...
RajThakuri
 
Role of managerial_economics_in_business_decision_making
Role of managerial_economics_in_business_decision_makingRole of managerial_economics_in_business_decision_making
Role of managerial_economics_in_business_decision_making
RajThakuri
 
Approaches of organizational_behavior
Approaches of organizational_behaviorApproaches of organizational_behavior
Approaches of organizational_behavior
RajThakuri
 
Vivo v17 pro Review
Vivo v17 pro ReviewVivo v17 pro Review
Vivo v17 pro Review
RajThakuri
 
Vivo x27 first_look
Vivo x27 first_lookVivo x27 first_look
Vivo x27 first_look
RajThakuri
 

More from RajThakuri (20)

Share Market.pptx
Share Market.pptxShare Market.pptx
Share Market.pptx
 
Statistical table
Statistical tableStatistical table
Statistical table
 
All Computer shortcuts for beginners....
All Computer shortcuts for beginners....All Computer shortcuts for beginners....
All Computer shortcuts for beginners....
 
Pdf. learn html.....html_course_(basic___advance_)_for_7_days
Pdf. learn html.....html_course_(basic___advance_)_for_7_daysPdf. learn html.....html_course_(basic___advance_)_for_7_days
Pdf. learn html.....html_course_(basic___advance_)_for_7_days
 
Programming language
Programming languageProgramming language
Programming language
 
Networking
NetworkingNetworking
Networking
 
Software
SoftwareSoftware
Software
 
Operating system
Operating systemOperating system
Operating system
 
Output devices
Output devicesOutput devices
Output devices
 
Input devices
Input devicesInput devices
Input devices
 
Internet
InternetInternet
Internet
 
Computer memory & Memory Storage Devices.
Computer memory & Memory Storage Devices.Computer memory & Memory Storage Devices.
Computer memory & Memory Storage Devices.
 
Artificial inteligence
Artificial inteligenceArtificial inteligence
Artificial inteligence
 
Testing of hypotheses
Testing of hypothesesTesting of hypotheses
Testing of hypotheses
 
Formulas to measure_central_tendency_(mean,_median,_mode)
Formulas to measure_central_tendency_(mean,_median,_mode)Formulas to measure_central_tendency_(mean,_median,_mode)
Formulas to measure_central_tendency_(mean,_median,_mode)
 
Leadership, its styles_&_leadership_theories...
Leadership, its styles_&_leadership_theories...Leadership, its styles_&_leadership_theories...
Leadership, its styles_&_leadership_theories...
 
Role of managerial_economics_in_business_decision_making
Role of managerial_economics_in_business_decision_makingRole of managerial_economics_in_business_decision_making
Role of managerial_economics_in_business_decision_making
 
Approaches of organizational_behavior
Approaches of organizational_behaviorApproaches of organizational_behavior
Approaches of organizational_behavior
 
Vivo v17 pro Review
Vivo v17 pro ReviewVivo v17 pro Review
Vivo v17 pro Review
 
Vivo x27 first_look
Vivo x27 first_lookVivo x27 first_look
Vivo x27 first_look
 

Recently uploaded

JMeter webinar - integration with InfluxDB and Grafana
JMeter webinar - integration with InfluxDB and GrafanaJMeter webinar - integration with InfluxDB and Grafana
JMeter webinar - integration with InfluxDB and Grafana
RTTS
 
Key Trends Shaping the Future of Infrastructure.pdf
Key Trends Shaping the Future of Infrastructure.pdfKey Trends Shaping the Future of Infrastructure.pdf
Key Trends Shaping the Future of Infrastructure.pdf
Cheryl Hung
 
Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...
Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...
Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...
Jeffrey Haguewood
 
Neuro-symbolic is not enough, we need neuro-*semantic*
Neuro-symbolic is not enough, we need neuro-*semantic*Neuro-symbolic is not enough, we need neuro-*semantic*
Neuro-symbolic is not enough, we need neuro-*semantic*
Frank van Harmelen
 
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
Tobias Schneck
 
From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...
From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...
From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...
Product School
 
How world-class product teams are winning in the AI era by CEO and Founder, P...
How world-class product teams are winning in the AI era by CEO and Founder, P...How world-class product teams are winning in the AI era by CEO and Founder, P...
How world-class product teams are winning in the AI era by CEO and Founder, P...
Product School
 
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdfFIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
FIDO Alliance
 
Transcript: Selling digital books in 2024: Insights from industry leaders - T...
Transcript: Selling digital books in 2024: Insights from industry leaders - T...Transcript: Selling digital books in 2024: Insights from industry leaders - T...
Transcript: Selling digital books in 2024: Insights from industry leaders - T...
BookNet Canada
 
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
Albert Hoitingh
 
Generating a custom Ruby SDK for your web service or Rails API using Smithy
Generating a custom Ruby SDK for your web service or Rails API using SmithyGenerating a custom Ruby SDK for your web service or Rails API using Smithy
Generating a custom Ruby SDK for your web service or Rails API using Smithy
g2nightmarescribd
 
GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
Sri Ambati
 
From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...
From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...
From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...
Product School
 
Accelerate your Kubernetes clusters with Varnish Caching
Accelerate your Kubernetes clusters with Varnish CachingAccelerate your Kubernetes clusters with Varnish Caching
Accelerate your Kubernetes clusters with Varnish Caching
Thijs Feryn
 
When stars align: studies in data quality, knowledge graphs, and machine lear...
When stars align: studies in data quality, knowledge graphs, and machine lear...When stars align: studies in data quality, knowledge graphs, and machine lear...
When stars align: studies in data quality, knowledge graphs, and machine lear...
Elena Simperl
 
Securing your Kubernetes cluster_ a step-by-step guide to success !
Securing your Kubernetes cluster_ a step-by-step guide to success !Securing your Kubernetes cluster_ a step-by-step guide to success !
Securing your Kubernetes cluster_ a step-by-step guide to success !
KatiaHIMEUR1
 
Epistemic Interaction - tuning interfaces to provide information for AI support
Epistemic Interaction - tuning interfaces to provide information for AI supportEpistemic Interaction - tuning interfaces to provide information for AI support
Epistemic Interaction - tuning interfaces to provide information for AI support
Alan Dix
 
The Art of the Pitch: WordPress Relationships and Sales
The Art of the Pitch: WordPress Relationships and SalesThe Art of the Pitch: WordPress Relationships and Sales
The Art of the Pitch: WordPress Relationships and Sales
Laura Byrne
 
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
James Anderson
 
Bits & Pixels using AI for Good.........
Bits & Pixels using AI for Good.........Bits & Pixels using AI for Good.........
Bits & Pixels using AI for Good.........
Alison B. Lowndes
 

Recently uploaded (20)

JMeter webinar - integration with InfluxDB and Grafana
JMeter webinar - integration with InfluxDB and GrafanaJMeter webinar - integration with InfluxDB and Grafana
JMeter webinar - integration with InfluxDB and Grafana
 
Key Trends Shaping the Future of Infrastructure.pdf
Key Trends Shaping the Future of Infrastructure.pdfKey Trends Shaping the Future of Infrastructure.pdf
Key Trends Shaping the Future of Infrastructure.pdf
 
Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...
Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...
Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...
 
Neuro-symbolic is not enough, we need neuro-*semantic*
Neuro-symbolic is not enough, we need neuro-*semantic*Neuro-symbolic is not enough, we need neuro-*semantic*
Neuro-symbolic is not enough, we need neuro-*semantic*
 
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
 
From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...
From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...
From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...
 
How world-class product teams are winning in the AI era by CEO and Founder, P...
How world-class product teams are winning in the AI era by CEO and Founder, P...How world-class product teams are winning in the AI era by CEO and Founder, P...
How world-class product teams are winning in the AI era by CEO and Founder, P...
 
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdfFIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
 
Transcript: Selling digital books in 2024: Insights from industry leaders - T...
Transcript: Selling digital books in 2024: Insights from industry leaders - T...Transcript: Selling digital books in 2024: Insights from industry leaders - T...
Transcript: Selling digital books in 2024: Insights from industry leaders - T...
 
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
 
Generating a custom Ruby SDK for your web service or Rails API using Smithy
Generating a custom Ruby SDK for your web service or Rails API using SmithyGenerating a custom Ruby SDK for your web service or Rails API using Smithy
Generating a custom Ruby SDK for your web service or Rails API using Smithy
 
GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
 
From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...
From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...
From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...
 
Accelerate your Kubernetes clusters with Varnish Caching
Accelerate your Kubernetes clusters with Varnish CachingAccelerate your Kubernetes clusters with Varnish Caching
Accelerate your Kubernetes clusters with Varnish Caching
 
When stars align: studies in data quality, knowledge graphs, and machine lear...
When stars align: studies in data quality, knowledge graphs, and machine lear...When stars align: studies in data quality, knowledge graphs, and machine lear...
When stars align: studies in data quality, knowledge graphs, and machine lear...
 
Securing your Kubernetes cluster_ a step-by-step guide to success !
Securing your Kubernetes cluster_ a step-by-step guide to success !Securing your Kubernetes cluster_ a step-by-step guide to success !
Securing your Kubernetes cluster_ a step-by-step guide to success !
 
Epistemic Interaction - tuning interfaces to provide information for AI support
Epistemic Interaction - tuning interfaces to provide information for AI supportEpistemic Interaction - tuning interfaces to provide information for AI support
Epistemic Interaction - tuning interfaces to provide information for AI support
 
The Art of the Pitch: WordPress Relationships and Sales
The Art of the Pitch: WordPress Relationships and SalesThe Art of the Pitch: WordPress Relationships and Sales
The Art of the Pitch: WordPress Relationships and Sales
 
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
 
Bits & Pixels using AI for Good.........
Bits & Pixels using AI for Good.........Bits & Pixels using AI for Good.........
Bits & Pixels using AI for Good.........
 

Number system

  • 2. 2.2 2-1 INTRODUCTION2-1 INTRODUCTION AA number systemnumber system defines how a number can bedefines how a number can be represented using distinct symbols. A number can berepresented using distinct symbols. A number can be represented differently in different systems. For example,represented differently in different systems. For example, the two numbers (2A)the two numbers (2A)1616 and (52)and (52)88 both refer to the sameboth refer to the same quantity, (42)quantity, (42)1010, but their representations are different., but their representations are different. .There are 4 types of number system.There are 4 types of number system  Binary number system(11100)Binary number system(11100)22  Decimal Number system(783)10Decimal Number system(783)10  Octal Number system(67)8Octal Number system(67)8  Hexa Decimal Number system(ABCD)16Hexa Decimal Number system(ABCD)16
  • 3. 2.3 1- Binary Number system: Binary Number system are those number system, which having base 2. it means it can contain only two numbers that is 0 and 1 for example (0101010)2. 2- octal number system: The octal number systems are those number system, which having base 8. it means I can contain 8 number (0,1,2,3,4,5,6,7) for example (765)8. 3- Decimal Number system: The Decimal number systems are those number system, which having base 10. it means It can contain 8 number (0,1,2,3,4,5,6,7,8,9) for example (7659)10. 4- Hexa Decimal number system: The octal number systems are those number system, which having base 16. it means It can contain 8 number (0,1,2,3,4,5,6,7,8,9,A,B,C,D,E,F) for example (765DE)16. Types of Number systemTypes of Number system
  • 4. 2.4 S = {0, 1, 2, 3, 4, 5, 6, 7, 8, 9} 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 The symbols in this system are often referred to as decimal digits or just digits.
  • 5. 2.5 Example 2.1 The following shows the place values for the integer +224 in theThe following shows the place values for the integer +224 in the decimal system.decimal system. Note that the digit 2 in position 1 has the value 20, but the sameNote that the digit 2 in position 1 has the value 20, but the same digit in position 2 has the value 200. Also note that we normallydigit in position 2 has the value 200. Also note that we normally drop the plus sign, but it is implicit.drop the plus sign, but it is implicit.
  • 6. 2.6 Example 2.2 The following shows the place values for the decimal numberThe following shows the place values for the decimal number −7508. We have used 1, 10, 100, and 1000 instead of powers of−7508. We have used 1, 10, 100, and 1000 instead of powers of 10.10. Note that the digit 2 in position 1 has the value 20, but the sameNote that the digit 2 in position 1 has the value 20, but the same digit in position 2 has the value 200. Also note that we normallydigit in position 2 has the value 200. Also note that we normally drop the plus sign, but it is implicit.drop the plus sign, but it is implicit. ( ) Values
  • 7. 2.7 Reals Example 2.3 The following shows the place values for the real number +24.13.The following shows the place values for the real number +24.13.
  • 8. 2.8 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, The binary system (base 2) S = {0, 1} The symbols in this system are often referred to as binary digits or bits (binary digit).
  • 9. 2.9 Example 2.4 The following shows that the number (11001)The following shows that the number (11001)22 in binary is thein binary is the same as 25 in decimal. The subscript 2 shows that the base is 2.same as 25 in decimal. The subscript 2 shows that the base is 2. The equivalent decimal number is N = 16 + 8 + 0 + 0 + 1 = 25.The equivalent decimal number is N = 16 + 8 + 0 + 0 + 1 = 25.
  • 10. 2.10 Reals Example 2.5 The following shows that the number (101.11)The following shows that the number (101.11)22 in binary is equalin binary is equal to the number 5.75 in decimal.to the number 5.75 in decimal.
  • 11. 2.11 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 The hexadecimal system (base 16) 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.
  • 12. 2.12 Example 2.6 The following shows that the number (2AE)16 in hexadecimal isThe following shows that the number (2AE)16 in hexadecimal is equivalent to 686 in decimal.equivalent to 686 in decimal. The equivalent decimal number is N = 512 + 160 + 14 = 686.The equivalent decimal number is N = 512 + 160 + 14 = 686.
  • 13. 2.13 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 The octal system (base 8) S = {0, 1, 2, 3, 4, 5, 6, 7}
  • 14. 2.14 Example 2.7 The following shows that the number (1256)The following shows that the number (1256)88 in octal is the samein octal is the same as 686 in decimal.as 686 in decimal. Note that the decimal number is N = 512 + 128 + 40 + 6 = 686.Note that the decimal number is N = 512 + 128 + 40 + 6 = 686.
  • 15. 2.15 Table 2.1 shows a summary of the four positional number systems discussed in this chapter. Summary of the four positional systems
  • 16. 2.16 Table 2.2 shows how the number 0 to 15 is represented in different systems.
  • 17. 2.17 We need to know how to convert a number in one system to the equivalent number in another system. Since the decimal system is more familiar than the other systems, we first show how to covert from any base to decimal. Then we show how to convert from decimal to any base. Finally, we show how we can easily convert from binary to hexadecimal or octal and vice versa. Conversion
  • 18. 2.18 Any base to decimal conversion Figure 2.5 Converting other bases to decimal
  • 19. 2.19 Example 2.8 The following shows how to convert the binary number (110.11)The following shows how to convert the binary number (110.11)22 to decimal: (110.11)to decimal: (110.11)22 = 6.75.= 6.75.
  • 20. 2.20 Example 2.9 The following shows how to convert the hexadecimal numberThe following shows how to convert the hexadecimal number (1A.23)(1A.23)1616 to decimal.to decimal. Note that the result in the decimal notation is not exact, becauseNote that the result in the decimal notation is not exact, because 3 × 163 × 16−2−2 = 0.01171875. We have rounded this value to three= 0.01171875. We have rounded this value to three digits (0.012).digits (0.012).
  • 21. 2.21 Example 2.10 The following shows how to convert (23.17)The following shows how to convert (23.17)88 to decimal.to decimal. This means that (23.17)8 ≈ 19.234 in decimal. Again, we haveThis means that (23.17)8 ≈ 19.234 in decimal. Again, we have rounded up 7 × 8rounded up 7 × 8−2−2 = 0.109375.= 0.109375.
  • 22. 2.22 Example 2.17 An alternative method for converting a small decimal integerAn alternative method for converting a small decimal integer (usually less than 256) to binary is to break the number as the(usually less than 256) to binary is to break the number as the sum of numbers that are equivalent to the binary place valuessum of numbers that are equivalent to the binary place values shown:shown:
  • 23. 2.23 Example 2.18 A similar method can be used to convert a decimal fraction toA similar method can be used to convert a decimal fraction to binary when the denominator is a power of two:binary when the denominator is a power of two: The answer is then (0.011011)The answer is then (0.011011)22
  • 24. 2.24 Example 2.19 Show the hexadecimal equivalent of the binary numberShow the hexadecimal equivalent of the binary number (110011100010)(110011100010)22.. SolutionSolution We first arrange the binary number in 4-bit patterns:We first arrange the binary number in 4-bit patterns: 100 1110 0010100 1110 0010 Note that the leftmost pattern can have one to four bits. We thenNote that the leftmost pattern can have one to four bits. We then use the equivalent of each pattern shown in Table 2.2 on page 25use the equivalent of each pattern shown in Table 2.2 on page 25 to change the number to hexadecimal: (4E2)16.to change the number to hexadecimal: (4E2)16.
  • 25. 2.25 Example 2.20 What is the binary equivalent of (24C)What is the binary equivalent of (24C)1616?? SolutionSolution Each hexadecimal digit is converted to 4-bit patterns:Each hexadecimal digit is converted to 4-bit patterns: 2 → 0010, 4 → 0100, and C →2 → 0010, 4 → 0100, and C → 11001100 The result is (001001001100)The result is (001001001100)22..
  • 26. 2.26 Example 2.21 Show the octal equivalent of the binary number (101110010)Show the octal equivalent of the binary number (101110010)22.. SolutionSolution Each group of three bits is translated into one octal digit. TheEach group of three bits is translated into one octal digit. The equivalent of each 3-bit group is shown in Table 2.2 on page 25.equivalent of each 3-bit group is shown in Table 2.2 on page 25. The result is (562)The result is (562)88.. 101 110 010101 110 010
  • 27. 2.27 Example 2.22 What is the binary equivalent of for (24)What is the binary equivalent of for (24)88?? SolutionSolution Write each octal digit as its equivalent bit pattern to getWrite each octal digit as its equivalent bit pattern to get 2 → 010 and 4 → 1002 → 010 and 4 → 100 The result is (010100)The result is (010100)22..
  • 28. 2.28 Octal-hexadecimal conversion Figure 2.12 Octal to hexadecimal and hexadecimal to octal conversion