SlideShare a Scribd company logo
1 of 26
Digital Principles
HND Level 4
14/5/2019 Digital Principles_HND L4 1
Topics: Number systems, and binary arithmetic
• Binary, decimal, hexadecimal number representation, converting
between
• Applications and relative advantages
• Addition and subtraction in binary, range of n-bit numbers
• Sample activities:
• Paired activity: Exercises converting between the different number
systems
• Group activity: Discuss relative advantages and disadvantages
between applications
• Individual activity: Calculations using different number bases
14/5/2019 Digital Principles_HND L4 2
Number Systems
• Common types of number systems used in Digital and
Computer Technology:
• Decimal (base 10)
• Binary (base 2)
• Octal (base 8 but obsolete)
• Hexadecimal (base 16)
Digital Principles_HND L414/5/2019 4
Positional values ( weights)
104 103 102 101 100
Decimal Numbering System
7 3 461
• Has ten symbols: ‘0’ through ‘9’
• Each position in the symbol sequence is
weighted by a factor of ten more than the
one to the right
• E.g.:
7316410 = 7 × 104 + 3 × 103 + 1 × 102 + 6 × 101 + 4 × 100
Digital Principles_HND L414/5/2019 5
Positional values ( weights)
24 23 22 21 20
• Has two symbols: ‘0’ and ‘1’
• Each position weighted by a factor of two
more than the one to the right.
• E.g.:
101012 = 1 × 24 + 0 × 23 + 1 × 22 + 0 × 21 + 1 × 20 = 2110
Binary Numbering System
1 0 101
Digital Principles_HND L414/5/2019 6
• The least significant bit of the binary
representation of Even quantities is ‘0’
and Odd quantities is ‘1’.
• Doubling a decimal value will have the
equivalent effect of shifting the binary
value to the left by one position
E.g.:
210 = 00102, 410 = 01002 , 810 = 10002
Counting in Binary System
Decimal System Binary System
0 0000
1 0001
2 0010
3 0011
4 0100
5 0101
6 0110
7 0111
8 1000
9 1001
10 1010
11 1011
12 1100
13 1101
14 1110
15 1111Digital Principles_HND L414/5/2019 7
Range of Binary Representation
• What is the largest number that can be represented
using N bits?
• The more bits, the bigger the number
• E.g. If no. of bits, N = 8 , when all the bits are 1s , then the
largest number is 255
• Alternatively , it can be calculated as shown below
2N – 1 = 28 – 1
= 25510
= 111111112
Digital Principles_HND L414/5/2019 8
1)Justify whether the binary number 110012 is equal to 2510 (decimal
form).
2)What is the largest number that can be represented using 8 bits?
Show your steps clearly.
3) Convert the binary number 1011 0101 1100 01102 to its
hexadecimal form (base 16)
14/5/2019 Digital Principles_HND L4 9
Justify whether the binary number 110012
is equal to 2510 (decimal form).
• Yes.
• 1x24 + 1x23 + 0x22 + 0x21 + 1x20
• = 16 + 8 + 0 + 0 + 1
• = 2510
14/5/2019 Digital Principles_HND L4 10
What is the largest number that can be
represented using 6 bits? Show your steps clearly.
• 255
• 26 – 1 = 25510
• = 111111112
14/5/2019 Digital Principles_HND L4 11
Convert the binary number 1011 0101 1100 01102 to its hexadecimal
form (base 16).
• 1011 = 11 (B)
• 0101 = 5
• 1100 = 12 (C)
• 0110 = 6
• 1011 0101 1101 01002 = B5C616
14/5/2019 Digital Principles_HND L4 12
Positional values ( weights)
163 162 161 160
F DEE
Hexadecimal Numbering System
• Has 16 symbols: ‘0’ through ‘F’
• Each position weighted by a factor of
sixteen more than the symbol to the right.
• E.g.:
FEED16 = 15×163 + 14×162 + 14×161 + 13×160 = 6526110
Digital Principles_HND L414/5/2019 13
Decimal-to-Binary Conversion
• Various methods can be used, 2 of which are:
• Sum-of-Weight Method
• Repeated Division-by-2 Method
Digital Principles_HND L414/5/2019 15
• Placing 1’s in appropriate weight
positions
• Summing the weights to give the
desired decimal number
• E.g.:
35710 = 256 + 64 + 32 + 4 + 1
= 28 + 26 + 25 + 22 + 20
35710 = 1011001012
Sum-of-Weight Method
Weights Decimal
Equivalent
28 256
27 128
26 64
25 32
24 16
23 8
22 4
21 2
20 1
Digital Principles_HND L414/5/2019 16
Repeated Division-by-2 Method
Digital Principles_HND L414/5/2019 17
14/5/2019 Digital Principles_HND L4 18
Convert decimal 35 into Binary number.
 Divide 35 by 2: 17 remainder 1
 Divide 17 by 2: 8 remainder 1
 Divide 8 by 2: 4 remainder 0
 Divide 4 by 2: 2 remainder 0
 Divide 2 by 2: 1 remainder 0
 Divide 1 by 2: 0 remainder 1
►Put together the remainders from bottom to top:
► Decimal 3510 ≡ Binary 1000112
14/5/2019 Digital Principles_HND L4 19
The same method can be used to convert to
hexadecimal (16-symbol) numbers too.
Let us consider again 3510.
 Divide 35 by 16:2 remainder 3
 Divide 2 by 16: 0 remainder 2
►Put together the remainders from bottom to
top:
► 3510 ≡ 2316
Hexadecimal-to-Binary Conversion
• Convert each digit of the Hexadecimal System number
to its 4-bit Binary System representation
• E.g.: Hexadecimal System Binary System
20016 0010 0000 00002
3E16 0011 11102
1FA16 0001 1111 10102
123D16 0001 0010 0011 11012
Digital Principles_HND L414/5/2019 20
14/5/2019 Digital Principles_HND L4 21
System: A B C
Number of symbols used: 10 2 16
Symbol of smallest value: 0 0 0
Symbol of largest value 9 1 F
14/5/2019 Digital Principles_HND L4 22
Decimal System Binary System Hexadecimal System
0 0 0
1 1 1
2 ? 2
3 11 ?
4 100 4
5 ? ?
6 ? ?
7 111 7
8 ? ?
9 1001 ?
10 1010 A
11 ? ?
12 1100 C
13 ? ?
14 ? ?
15 1111 F
16 ? ?
14/5/2019 Digital Principles_HND L4 23
Decimal System Binary System Hexadecimal System
252 1111 1100 FC
253 1111 1101 FD
254 1111 1110 FE
255 ? ?
256 1 0000 0000 100
257 ? ?
258 ? 102
.
.
.
.
.
.
.
.
.
1023 11 1111 1111 3FF
1024 ? 400
1025 ? ?
14/5/2019 Digital Principles_HND L4 25
Now, convert the binary number systems to decimal
system.
(i) 10112
= (1 x 23) + (0 x 22) + (1 x 21) + (1 x 20)
= 8 + 2 + 1
= 1110
(ii) 101012
= (1 x 24) + (0 x 23) + (1 x 22) + (0 x 21) + (1 x 20)
=16 + 0 + 4 + 0 + 1
=2110
14/5/2019 Digital Principles_HND L4 27
Convert the following binary numbers to decimal:
a) 0110
b) 1010
c) 1111 0101
d) 1010 1011
Convert the following decimal numbers to its binary equivalent
representation.
a) 7
b) 14
c) 28
14/5/2019 Digital Principles_HND L4 28
Convert the following hexadecimal numbers into its
decimal AND binary representation.
a) 3C
b) 50F
c) BEEF
14/5/2019 Digital Principles_HND L4 29
Converting Binary (base 2) to Decimal system (base 10)
10112 = (1 x 23) + (0 x 22) + (1 x 21) + (1 x 20)
= 8 + 0 + 2 + 1
= 1110
Converting Hexadecimals (base 16) to Decimal system (base 10)
A316 = (A16 x 161) + (316 x 160)
= (10 x 161) + (3 x 160)
= 160 + 3
= 16310
How Are They Different?
• Decimal vs Hexadecimal vs Octal vs Binary
Decimal Hexadecimal Octal Binary
Base 10 16 8 2
Symbols 0 – 9 0 – 9 , A – F 0 – 7 0 – 1
Number of
symbols
10 16 8 2
Highest
Symbol Value
9 F 7 1
Digital Principles_HND L414/5/2019 30

More Related Content

What's hot

Introduction to number system
Introduction to number systemIntroduction to number system
Introduction to number systemAswiniT3
 
Number system utm notes
Number system utm notesNumber system utm notes
Number system utm notesKurenai Ryu
 
Numbersystemcont
NumbersystemcontNumbersystemcont
NumbersystemcontSajib
 
Number system and codes
Number system and codesNumber system and codes
Number system and codesAbhiraj Bohra
 
Number Systems and Binary Aritmetics
Number Systems and Binary AritmeticsNumber Systems and Binary Aritmetics
Number Systems and Binary AritmeticsDelowar Hossain
 
Computer architecture data representation
Computer architecture  data representationComputer architecture  data representation
Computer architecture data representationAnil Pokhrel
 
Introduction of number system
Introduction of number systemIntroduction of number system
Introduction of number systemAswiniT3
 
Binary Codes and Number System
Binary Codes and Number SystemBinary Codes and Number System
Binary Codes and Number SystemDebarati Das
 
Representation of Signed Numbers - R.D.Sivakumar
Representation of Signed Numbers - R.D.SivakumarRepresentation of Signed Numbers - R.D.Sivakumar
Representation of Signed Numbers - R.D.SivakumarSivakumar R D .
 
POLITEKNIK MALAYSIA
POLITEKNIK MALAYSIAPOLITEKNIK MALAYSIA
POLITEKNIK MALAYSIAAiman Hud
 
Introduction number systems and conversion
 Introduction number systems and conversion Introduction number systems and conversion
Introduction number systems and conversionkanyuma jitjumnong
 
Decimal to binary number
Decimal to binary numberDecimal to binary number
Decimal to binary numberguestd8696a
 

What's hot (20)

Number systems ppt
Number systems pptNumber systems ppt
Number systems ppt
 
Introduction to number system
Introduction to number systemIntroduction to number system
Introduction to number system
 
Number system utm notes
Number system utm notesNumber system utm notes
Number system utm notes
 
Numbersystemcont
NumbersystemcontNumbersystemcont
Numbersystemcont
 
Number system and codes
Number system and codesNumber system and codes
Number system and codes
 
Data Representation
Data RepresentationData Representation
Data Representation
 
Number systems r002
Number systems  r002Number systems  r002
Number systems r002
 
Number Systems and Binary Aritmetics
Number Systems and Binary AritmeticsNumber Systems and Binary Aritmetics
Number Systems and Binary Aritmetics
 
Computer architecture data representation
Computer architecture  data representationComputer architecture  data representation
Computer architecture data representation
 
Introduction of number system
Introduction of number systemIntroduction of number system
Introduction of number system
 
Binary Codes and Number System
Binary Codes and Number SystemBinary Codes and Number System
Binary Codes and Number System
 
Number system
Number systemNumber system
Number system
 
Codes r005
Codes  r005Codes  r005
Codes r005
 
Binary arithmetic
Binary arithmeticBinary arithmetic
Binary arithmetic
 
Number system
Number systemNumber system
Number system
 
Representation of Signed Numbers - R.D.Sivakumar
Representation of Signed Numbers - R.D.SivakumarRepresentation of Signed Numbers - R.D.Sivakumar
Representation of Signed Numbers - R.D.Sivakumar
 
POLITEKNIK MALAYSIA
POLITEKNIK MALAYSIAPOLITEKNIK MALAYSIA
POLITEKNIK MALAYSIA
 
Data Representation
Data RepresentationData Representation
Data Representation
 
Introduction number systems and conversion
 Introduction number systems and conversion Introduction number systems and conversion
Introduction number systems and conversion
 
Decimal to binary number
Decimal to binary numberDecimal to binary number
Decimal to binary number
 

Similar to Digital Principles-Number systems

Digital Logic Design.pptx
Digital Logic Design.pptxDigital Logic Design.pptx
Digital Logic Design.pptxAminaZahid16
 
Digital basics
Digital basicsDigital basics
Digital basicsimran khan
 
Number system in Digital Electronics
Number system in Digital ElectronicsNumber system in Digital Electronics
Number system in Digital ElectronicsJanki Shah
 
Chapter 2 Data Representation on CPU (part 1)
Chapter 2 Data Representation on CPU (part 1)Chapter 2 Data Representation on CPU (part 1)
Chapter 2 Data Representation on CPU (part 1)Frankie Jones
 
Chapter 2_Number system (EEEg4302).pdf
Chapter 2_Number system (EEEg4302).pdfChapter 2_Number system (EEEg4302).pdf
Chapter 2_Number system (EEEg4302).pdfTamiratDejene1
 
Data representation
Data representationData representation
Data representationChew Hoong
 
UNIT - I.pptx
UNIT - I.pptxUNIT - I.pptx
UNIT - I.pptxamudhak10
 
UNIT - I.pptx
UNIT - I.pptxUNIT - I.pptx
UNIT - I.pptxamudhak10
 
Number System and Conversions.pptx
Number System and Conversions.pptxNumber System and Conversions.pptx
Number System and Conversions.pptxkhalidkk6
 
Number system and their conversion
Number system and their conversionNumber system and their conversion
Number system and their conversionRam Pratap Singh
 
Logic Design 2009
Logic Design 2009Logic Design 2009
Logic Design 2009lionking
 

Similar to Digital Principles-Number systems (20)

Digital Logic Design.pptx
Digital Logic Design.pptxDigital Logic Design.pptx
Digital Logic Design.pptx
 
Number Systems
Number SystemsNumber Systems
Number Systems
 
Number_Systems (2).ppt
Number_Systems (2).pptNumber_Systems (2).ppt
Number_Systems (2).ppt
 
Chapter02.pdf
Chapter02.pdfChapter02.pdf
Chapter02.pdf
 
number system
number systemnumber system
number system
 
Digital basics
Digital basicsDigital basics
Digital basics
 
uyuyuy.pdf
uyuyuy.pdfuyuyuy.pdf
uyuyuy.pdf
 
Number system in Digital Electronics
Number system in Digital ElectronicsNumber system in Digital Electronics
Number system in Digital Electronics
 
DLD-Introduction.pptx
DLD-Introduction.pptxDLD-Introduction.pptx
DLD-Introduction.pptx
 
ch2.pdf
ch2.pdfch2.pdf
ch2.pdf
 
Chapter 2 Data Representation on CPU (part 1)
Chapter 2 Data Representation on CPU (part 1)Chapter 2 Data Representation on CPU (part 1)
Chapter 2 Data Representation on CPU (part 1)
 
Chapter 2_Number system (EEEg4302).pdf
Chapter 2_Number system (EEEg4302).pdfChapter 2_Number system (EEEg4302).pdf
Chapter 2_Number system (EEEg4302).pdf
 
Cit 1101 lec 02
Cit 1101 lec 02Cit 1101 lec 02
Cit 1101 lec 02
 
Data representation
Data representationData representation
Data representation
 
UNIT - I.pptx
UNIT - I.pptxUNIT - I.pptx
UNIT - I.pptx
 
UNIT - I.pptx
UNIT - I.pptxUNIT - I.pptx
UNIT - I.pptx
 
Number System and Conversions.pptx
Number System and Conversions.pptxNumber System and Conversions.pptx
Number System and Conversions.pptx
 
Number system and their conversion
Number system and their conversionNumber system and their conversion
Number system and their conversion
 
Alu1
Alu1Alu1
Alu1
 
Logic Design 2009
Logic Design 2009Logic Design 2009
Logic Design 2009
 

More from chandkec

Class 8 Science :Conservation of plants and animals
Class 8 Science :Conservation of plants and animalsClass 8 Science :Conservation of plants and animals
Class 8 Science :Conservation of plants and animalschandkec
 
Industries
IndustriesIndustries
Industrieschandkec
 
Theoritical concept of operating system
Theoritical concept of operating systemTheoritical concept of operating system
Theoritical concept of operating systemchandkec
 
Operators and Conditional statements in C
Operators and Conditional statements in COperators and Conditional statements in C
Operators and Conditional statements in Cchandkec
 
Computer organisation ppt
Computer organisation pptComputer organisation ppt
Computer organisation pptchandkec
 
Do we need a parliament ?
Do we need a parliament ?Do we need a parliament ?
Do we need a parliament ?chandkec
 
Ch 6. combustion and flame
Ch 6. combustion and flameCh 6. combustion and flame
Ch 6. combustion and flamechandkec
 
8th standard, Geography :Ch 4. Agriculture
8th standard, Geography :Ch 4. Agriculture8th standard, Geography :Ch 4. Agriculture
8th standard, Geography :Ch 4. Agriculturechandkec
 
8th Standard Geography : Rocks and Soils
8th Standard Geography : Rocks and Soils8th Standard Geography : Rocks and Soils
8th Standard Geography : Rocks and Soilschandkec
 
Introduction to Turbo C data types
Introduction to Turbo  C data typesIntroduction to Turbo  C data types
Introduction to Turbo C data typeschandkec
 
Computer science introduction to C programming
Computer science introduction to C programmingComputer science introduction to C programming
Computer science introduction to C programmingchandkec
 
8th computer science ch 1
8th computer science ch 18th computer science ch 1
8th computer science ch 1chandkec
 
8th Standard, Geography: Rocks and soils 8th and soil
8th Standard, Geography: Rocks and soils 8th and soil8th Standard, Geography: Rocks and soils 8th and soil
8th Standard, Geography: Rocks and soils 8th and soilchandkec
 
Ch 6. square and squareroots
Ch 6. square and squarerootsCh 6. square and squareroots
Ch 6. square and squarerootschandkec
 
Ch 6. square and squareroots
Ch 6. square and squarerootsCh 6. square and squareroots
Ch 6. square and squarerootschandkec
 
Ch 18. pollution
Ch 18. pollutionCh 18. pollution
Ch 18. pollutionchandkec
 
NCERT_Class 8Geography 3.minerals and power resources
NCERT_Class 8Geography 3.minerals and power resourcesNCERT_Class 8Geography 3.minerals and power resources
NCERT_Class 8Geography 3.minerals and power resourceschandkec
 
Microorganism : uses
Microorganism : usesMicroorganism : uses
Microorganism : useschandkec
 
Laws of exponents and Power
Laws of exponents and PowerLaws of exponents and Power
Laws of exponents and Powerchandkec
 
Exponents and powers--Part1
Exponents and powers--Part1Exponents and powers--Part1
Exponents and powers--Part1chandkec
 

More from chandkec (20)

Class 8 Science :Conservation of plants and animals
Class 8 Science :Conservation of plants and animalsClass 8 Science :Conservation of plants and animals
Class 8 Science :Conservation of plants and animals
 
Industries
IndustriesIndustries
Industries
 
Theoritical concept of operating system
Theoritical concept of operating systemTheoritical concept of operating system
Theoritical concept of operating system
 
Operators and Conditional statements in C
Operators and Conditional statements in COperators and Conditional statements in C
Operators and Conditional statements in C
 
Computer organisation ppt
Computer organisation pptComputer organisation ppt
Computer organisation ppt
 
Do we need a parliament ?
Do we need a parliament ?Do we need a parliament ?
Do we need a parliament ?
 
Ch 6. combustion and flame
Ch 6. combustion and flameCh 6. combustion and flame
Ch 6. combustion and flame
 
8th standard, Geography :Ch 4. Agriculture
8th standard, Geography :Ch 4. Agriculture8th standard, Geography :Ch 4. Agriculture
8th standard, Geography :Ch 4. Agriculture
 
8th Standard Geography : Rocks and Soils
8th Standard Geography : Rocks and Soils8th Standard Geography : Rocks and Soils
8th Standard Geography : Rocks and Soils
 
Introduction to Turbo C data types
Introduction to Turbo  C data typesIntroduction to Turbo  C data types
Introduction to Turbo C data types
 
Computer science introduction to C programming
Computer science introduction to C programmingComputer science introduction to C programming
Computer science introduction to C programming
 
8th computer science ch 1
8th computer science ch 18th computer science ch 1
8th computer science ch 1
 
8th Standard, Geography: Rocks and soils 8th and soil
8th Standard, Geography: Rocks and soils 8th and soil8th Standard, Geography: Rocks and soils 8th and soil
8th Standard, Geography: Rocks and soils 8th and soil
 
Ch 6. square and squareroots
Ch 6. square and squarerootsCh 6. square and squareroots
Ch 6. square and squareroots
 
Ch 6. square and squareroots
Ch 6. square and squarerootsCh 6. square and squareroots
Ch 6. square and squareroots
 
Ch 18. pollution
Ch 18. pollutionCh 18. pollution
Ch 18. pollution
 
NCERT_Class 8Geography 3.minerals and power resources
NCERT_Class 8Geography 3.minerals and power resourcesNCERT_Class 8Geography 3.minerals and power resources
NCERT_Class 8Geography 3.minerals and power resources
 
Microorganism : uses
Microorganism : usesMicroorganism : uses
Microorganism : uses
 
Laws of exponents and Power
Laws of exponents and PowerLaws of exponents and Power
Laws of exponents and Power
 
Exponents and powers--Part1
Exponents and powers--Part1Exponents and powers--Part1
Exponents and powers--Part1
 

Recently uploaded

Study on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube ExchangerStudy on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube ExchangerAnamika Sarkar
 
Application of Residue Theorem to evaluate real integrations.pptx
Application of Residue Theorem to evaluate real integrations.pptxApplication of Residue Theorem to evaluate real integrations.pptx
Application of Residue Theorem to evaluate real integrations.pptx959SahilShah
 
Call Girls Narol 7397865700 Independent Call Girls
Call Girls Narol 7397865700 Independent Call GirlsCall Girls Narol 7397865700 Independent Call Girls
Call Girls Narol 7397865700 Independent Call Girlsssuser7cb4ff
 
IVE Industry Focused Event - Defence Sector 2024
IVE Industry Focused Event - Defence Sector 2024IVE Industry Focused Event - Defence Sector 2024
IVE Industry Focused Event - Defence Sector 2024Mark Billinghurst
 
Internship report on mechanical engineering
Internship report on mechanical engineeringInternship report on mechanical engineering
Internship report on mechanical engineeringmalavadedarshan25
 
Biology for Computer Engineers Course Handout.pptx
Biology for Computer Engineers Course Handout.pptxBiology for Computer Engineers Course Handout.pptx
Biology for Computer Engineers Course Handout.pptxDeepakSakkari2
 
microprocessor 8085 and its interfacing
microprocessor 8085  and its interfacingmicroprocessor 8085  and its interfacing
microprocessor 8085 and its interfacingjaychoudhary37
 
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...srsj9000
 
Past, Present and Future of Generative AI
Past, Present and Future of Generative AIPast, Present and Future of Generative AI
Past, Present and Future of Generative AIabhishek36461
 
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCollege Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCall Girls in Nagpur High Profile
 
Introduction to Microprocesso programming and interfacing.pptx
Introduction to Microprocesso programming and interfacing.pptxIntroduction to Microprocesso programming and interfacing.pptx
Introduction to Microprocesso programming and interfacing.pptxvipinkmenon1
 
GDSC ASEB Gen AI study jams presentation
GDSC ASEB Gen AI study jams presentationGDSC ASEB Gen AI study jams presentation
GDSC ASEB Gen AI study jams presentationGDSCAESB
 
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Dr.Costas Sachpazis
 
chaitra-1.pptx fake news detection using machine learning
chaitra-1.pptx  fake news detection using machine learningchaitra-1.pptx  fake news detection using machine learning
chaitra-1.pptx fake news detection using machine learningmisbanausheenparvam
 
ZXCTN 5804 / ZTE PTN / ZTE POTN / ZTE 5804 PTN / ZTE POTN 5804 ( 100/200 GE Z...
ZXCTN 5804 / ZTE PTN / ZTE POTN / ZTE 5804 PTN / ZTE POTN 5804 ( 100/200 GE Z...ZXCTN 5804 / ZTE PTN / ZTE POTN / ZTE 5804 PTN / ZTE POTN 5804 ( 100/200 GE Z...
ZXCTN 5804 / ZTE PTN / ZTE POTN / ZTE 5804 PTN / ZTE POTN 5804 ( 100/200 GE Z...ZTE
 
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdfCCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdfAsst.prof M.Gokilavani
 
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVHARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVRajaP95
 
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort serviceGurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort servicejennyeacort
 

Recently uploaded (20)

Study on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube ExchangerStudy on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
 
Application of Residue Theorem to evaluate real integrations.pptx
Application of Residue Theorem to evaluate real integrations.pptxApplication of Residue Theorem to evaluate real integrations.pptx
Application of Residue Theorem to evaluate real integrations.pptx
 
Call Girls Narol 7397865700 Independent Call Girls
Call Girls Narol 7397865700 Independent Call GirlsCall Girls Narol 7397865700 Independent Call Girls
Call Girls Narol 7397865700 Independent Call Girls
 
IVE Industry Focused Event - Defence Sector 2024
IVE Industry Focused Event - Defence Sector 2024IVE Industry Focused Event - Defence Sector 2024
IVE Industry Focused Event - Defence Sector 2024
 
Internship report on mechanical engineering
Internship report on mechanical engineeringInternship report on mechanical engineering
Internship report on mechanical engineering
 
Biology for Computer Engineers Course Handout.pptx
Biology for Computer Engineers Course Handout.pptxBiology for Computer Engineers Course Handout.pptx
Biology for Computer Engineers Course Handout.pptx
 
microprocessor 8085 and its interfacing
microprocessor 8085  and its interfacingmicroprocessor 8085  and its interfacing
microprocessor 8085 and its interfacing
 
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
 
★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR
★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR
★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR
 
Past, Present and Future of Generative AI
Past, Present and Future of Generative AIPast, Present and Future of Generative AI
Past, Present and Future of Generative AI
 
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCollege Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
 
Introduction to Microprocesso programming and interfacing.pptx
Introduction to Microprocesso programming and interfacing.pptxIntroduction to Microprocesso programming and interfacing.pptx
Introduction to Microprocesso programming and interfacing.pptx
 
GDSC ASEB Gen AI study jams presentation
GDSC ASEB Gen AI study jams presentationGDSC ASEB Gen AI study jams presentation
GDSC ASEB Gen AI study jams presentation
 
9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf
9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf
9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf
 
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
 
chaitra-1.pptx fake news detection using machine learning
chaitra-1.pptx  fake news detection using machine learningchaitra-1.pptx  fake news detection using machine learning
chaitra-1.pptx fake news detection using machine learning
 
ZXCTN 5804 / ZTE PTN / ZTE POTN / ZTE 5804 PTN / ZTE POTN 5804 ( 100/200 GE Z...
ZXCTN 5804 / ZTE PTN / ZTE POTN / ZTE 5804 PTN / ZTE POTN 5804 ( 100/200 GE Z...ZXCTN 5804 / ZTE PTN / ZTE POTN / ZTE 5804 PTN / ZTE POTN 5804 ( 100/200 GE Z...
ZXCTN 5804 / ZTE PTN / ZTE POTN / ZTE 5804 PTN / ZTE POTN 5804 ( 100/200 GE Z...
 
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdfCCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
 
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVHARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
 
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort serviceGurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
 

Digital Principles-Number systems

  • 1. Digital Principles HND Level 4 14/5/2019 Digital Principles_HND L4 1
  • 2. Topics: Number systems, and binary arithmetic • Binary, decimal, hexadecimal number representation, converting between • Applications and relative advantages • Addition and subtraction in binary, range of n-bit numbers • Sample activities: • Paired activity: Exercises converting between the different number systems • Group activity: Discuss relative advantages and disadvantages between applications • Individual activity: Calculations using different number bases 14/5/2019 Digital Principles_HND L4 2
  • 3. Number Systems • Common types of number systems used in Digital and Computer Technology: • Decimal (base 10) • Binary (base 2) • Octal (base 8 but obsolete) • Hexadecimal (base 16) Digital Principles_HND L414/5/2019 4
  • 4. Positional values ( weights) 104 103 102 101 100 Decimal Numbering System 7 3 461 • Has ten symbols: ‘0’ through ‘9’ • Each position in the symbol sequence is weighted by a factor of ten more than the one to the right • E.g.: 7316410 = 7 × 104 + 3 × 103 + 1 × 102 + 6 × 101 + 4 × 100 Digital Principles_HND L414/5/2019 5
  • 5. Positional values ( weights) 24 23 22 21 20 • Has two symbols: ‘0’ and ‘1’ • Each position weighted by a factor of two more than the one to the right. • E.g.: 101012 = 1 × 24 + 0 × 23 + 1 × 22 + 0 × 21 + 1 × 20 = 2110 Binary Numbering System 1 0 101 Digital Principles_HND L414/5/2019 6
  • 6. • The least significant bit of the binary representation of Even quantities is ‘0’ and Odd quantities is ‘1’. • Doubling a decimal value will have the equivalent effect of shifting the binary value to the left by one position E.g.: 210 = 00102, 410 = 01002 , 810 = 10002 Counting in Binary System Decimal System Binary System 0 0000 1 0001 2 0010 3 0011 4 0100 5 0101 6 0110 7 0111 8 1000 9 1001 10 1010 11 1011 12 1100 13 1101 14 1110 15 1111Digital Principles_HND L414/5/2019 7
  • 7. Range of Binary Representation • What is the largest number that can be represented using N bits? • The more bits, the bigger the number • E.g. If no. of bits, N = 8 , when all the bits are 1s , then the largest number is 255 • Alternatively , it can be calculated as shown below 2N – 1 = 28 – 1 = 25510 = 111111112 Digital Principles_HND L414/5/2019 8
  • 8. 1)Justify whether the binary number 110012 is equal to 2510 (decimal form). 2)What is the largest number that can be represented using 8 bits? Show your steps clearly. 3) Convert the binary number 1011 0101 1100 01102 to its hexadecimal form (base 16) 14/5/2019 Digital Principles_HND L4 9
  • 9. Justify whether the binary number 110012 is equal to 2510 (decimal form). • Yes. • 1x24 + 1x23 + 0x22 + 0x21 + 1x20 • = 16 + 8 + 0 + 0 + 1 • = 2510 14/5/2019 Digital Principles_HND L4 10
  • 10. What is the largest number that can be represented using 6 bits? Show your steps clearly. • 255 • 26 – 1 = 25510 • = 111111112 14/5/2019 Digital Principles_HND L4 11
  • 11. Convert the binary number 1011 0101 1100 01102 to its hexadecimal form (base 16). • 1011 = 11 (B) • 0101 = 5 • 1100 = 12 (C) • 0110 = 6 • 1011 0101 1101 01002 = B5C616 14/5/2019 Digital Principles_HND L4 12
  • 12. Positional values ( weights) 163 162 161 160 F DEE Hexadecimal Numbering System • Has 16 symbols: ‘0’ through ‘F’ • Each position weighted by a factor of sixteen more than the symbol to the right. • E.g.: FEED16 = 15×163 + 14×162 + 14×161 + 13×160 = 6526110 Digital Principles_HND L414/5/2019 13
  • 13. Decimal-to-Binary Conversion • Various methods can be used, 2 of which are: • Sum-of-Weight Method • Repeated Division-by-2 Method Digital Principles_HND L414/5/2019 15
  • 14. • Placing 1’s in appropriate weight positions • Summing the weights to give the desired decimal number • E.g.: 35710 = 256 + 64 + 32 + 4 + 1 = 28 + 26 + 25 + 22 + 20 35710 = 1011001012 Sum-of-Weight Method Weights Decimal Equivalent 28 256 27 128 26 64 25 32 24 16 23 8 22 4 21 2 20 1 Digital Principles_HND L414/5/2019 16
  • 15. Repeated Division-by-2 Method Digital Principles_HND L414/5/2019 17
  • 16. 14/5/2019 Digital Principles_HND L4 18 Convert decimal 35 into Binary number.  Divide 35 by 2: 17 remainder 1  Divide 17 by 2: 8 remainder 1  Divide 8 by 2: 4 remainder 0  Divide 4 by 2: 2 remainder 0  Divide 2 by 2: 1 remainder 0  Divide 1 by 2: 0 remainder 1 ►Put together the remainders from bottom to top: ► Decimal 3510 ≡ Binary 1000112
  • 17. 14/5/2019 Digital Principles_HND L4 19 The same method can be used to convert to hexadecimal (16-symbol) numbers too. Let us consider again 3510.  Divide 35 by 16:2 remainder 3  Divide 2 by 16: 0 remainder 2 ►Put together the remainders from bottom to top: ► 3510 ≡ 2316
  • 18. Hexadecimal-to-Binary Conversion • Convert each digit of the Hexadecimal System number to its 4-bit Binary System representation • E.g.: Hexadecimal System Binary System 20016 0010 0000 00002 3E16 0011 11102 1FA16 0001 1111 10102 123D16 0001 0010 0011 11012 Digital Principles_HND L414/5/2019 20
  • 19. 14/5/2019 Digital Principles_HND L4 21 System: A B C Number of symbols used: 10 2 16 Symbol of smallest value: 0 0 0 Symbol of largest value 9 1 F
  • 20. 14/5/2019 Digital Principles_HND L4 22 Decimal System Binary System Hexadecimal System 0 0 0 1 1 1 2 ? 2 3 11 ? 4 100 4 5 ? ? 6 ? ? 7 111 7 8 ? ? 9 1001 ? 10 1010 A 11 ? ? 12 1100 C 13 ? ? 14 ? ? 15 1111 F 16 ? ?
  • 21. 14/5/2019 Digital Principles_HND L4 23 Decimal System Binary System Hexadecimal System 252 1111 1100 FC 253 1111 1101 FD 254 1111 1110 FE 255 ? ? 256 1 0000 0000 100 257 ? ? 258 ? 102 . . . . . . . . . 1023 11 1111 1111 3FF 1024 ? 400 1025 ? ?
  • 22. 14/5/2019 Digital Principles_HND L4 25 Now, convert the binary number systems to decimal system. (i) 10112 = (1 x 23) + (0 x 22) + (1 x 21) + (1 x 20) = 8 + 2 + 1 = 1110 (ii) 101012 = (1 x 24) + (0 x 23) + (1 x 22) + (0 x 21) + (1 x 20) =16 + 0 + 4 + 0 + 1 =2110
  • 23. 14/5/2019 Digital Principles_HND L4 27 Convert the following binary numbers to decimal: a) 0110 b) 1010 c) 1111 0101 d) 1010 1011 Convert the following decimal numbers to its binary equivalent representation. a) 7 b) 14 c) 28
  • 24. 14/5/2019 Digital Principles_HND L4 28 Convert the following hexadecimal numbers into its decimal AND binary representation. a) 3C b) 50F c) BEEF
  • 25. 14/5/2019 Digital Principles_HND L4 29 Converting Binary (base 2) to Decimal system (base 10) 10112 = (1 x 23) + (0 x 22) + (1 x 21) + (1 x 20) = 8 + 0 + 2 + 1 = 1110 Converting Hexadecimals (base 16) to Decimal system (base 10) A316 = (A16 x 161) + (316 x 160) = (10 x 161) + (3 x 160) = 160 + 3 = 16310
  • 26. How Are They Different? • Decimal vs Hexadecimal vs Octal vs Binary Decimal Hexadecimal Octal Binary Base 10 16 8 2 Symbols 0 – 9 0 – 9 , A – F 0 – 7 0 – 1 Number of symbols 10 16 8 2 Highest Symbol Value 9 F 7 1 Digital Principles_HND L414/5/2019 30