SlideShare a Scribd company logo
1 of 9
Lecturer: Ms. Farwah Ahmad
17/05/2022
https://www.youtube.com/c/LearnRigorouslywithFarwahAhmad
1
Course Content:
Recommended Books:
1. Digital Logic and Computer
Design, Morris Mano, Prentice
Hall, 1996
2. Digital Fundamentals, Thomas
L. Floyd
17/05/2022
https://www.youtube.com/c/LearnRigorouslywithFarwahAhmad
2
Digital
Systems
Number
system
Weighted/Positional
DECIMAL
Binary
Octal
Hexadecimal
17/05/2022
https://www.youtube.com/c/LearnRigorouslywithFarwahAhmad 3
General Notation
Base or Radix
MSD
(N)R
= an-1. R
n-1
+ ...............+ a2 .R
2
+ a1.R + a0 + a-1. R
-1
+
a-2 . R
-2
+ ...........+ a-m . R
-m
.
LSD
Place Value
Fractional Side
Coefficients an = a5a4a3a2a1a0 . a-1a-2a-3
Integral Side Radix Point
Powers from right to left Powers from left to right
N = (𝑎5𝑎4𝑎3𝑎2𝑎1𝑎0 . 𝑎−1𝑎−2𝑎−3 ) R
( Power = weight)
 Where N is any number.
 Where “R” is base or radix of number
system.
 Possible Digits : (0,1, . . . , R − 1)
 an are the coefficients and the subscript
value n gives the place value.
 Any Coefficient an has weight = R
n
 an-1. R
n-1
= most significant digit (MSD)
 a
-m
. R
-m
= least significant digit (LSD)
17/05/2022
https://www.youtube.com/c/LearnRigorouslywithFarwahAhmad 4
Example: 1 9 3 8 . 2 5 7
.
Place value
R=10
a−1
a0
a1
a2
a3
a−2
a−3
= (a3×R
3
)+(a2×R
2
)+(a1×R
1
)+(a0×R
0
)+(a−1×R
−1
)+(a−2×R
−2
)+(a−3 × R
−3
)
Weight
= ( × 10
3
) + ( × 10
2
) + ( × 10
1
) + ( × 10
0
) + ( × 10
−1
) + ( × 10
−2
) + ( × 10
−3
)
= 1 x 1000 + 9 x 100 + 3 x 10 + 8 x 1 + 2 x 0.1 + 5 x 0.01 + 7 x 0.001
 Base, or Radix is 10
 So weight = 10𝑛
regarding the power of
10
 Coefficients aj = { 0, 1,
2, 3, 4, 5, 6, 7, 8, 9 }
 Range for n integer
bits = 0 – (10
n
– 1 )
Minimum Maximum
= 000…..0 - (999…..9)
 Range for n integer
bits = (1 – 10
-m
)
17/05/2022 5
Example: 1 1 0 0 . 1 1 1
.
Place value
R=2
a−1
a0
a1
a2
a3
a−2
a−3
= (a3×R
3
)+(a2×R
2
)+(a1×R
1
)+(a0×R
0
)+(a−1×R
−1
)+(a−2×R
−2
)+(a−3 × R
−3
)
Weight
= ( × 2
3
) + ( × 2
2
) + ( × 2
1
) + ( × 2
0
) + ( × 2
−1
) + ( × 2
−2
) + ( × 2
−3
)
= 1 x 8 + 1 x 4 + 0 x 2 + 0 x 1 + 1 x 0.5 + 1 x 0.25 + 1 x 0.125 17/05/2022 6
 Base, or Radix is 2
 So weight = 2𝑛
regarding the power of
2
 Coefficients aj = { 0, 1}
 Range for n integer
bits = 0 – (2
n
– 1 )
Minimum Maximum
= 000…..0 - (111…..1)
 Range for n integer
bits = (1 – 2
-m
)
Example: 2 6 . 2 4
.
Place value
R=8
a−1
a0
a1
a−2
= (a1×R
1
)+(a0×R
0
)+(a−1×R
−1
)+(a−2×R
−2
)
Weight
= ( × 8
1
) + ( × 8
0
) + ( × 8
−1
) + ( × 8
−2
)
= 2 x 8 + 6 x 1 + 2 x 0.125 + 4 x 0.015625 17/05/2022 7
 Base, or Radix is 8
 So weight = 8𝑛
regarding the power of
8
 Coefficients aj = { 0,
1,2,3,4,5,6,7}
 Range for n integer
bits = 0 – (8
n
– 1 )
Minimum Maximum
= 000…..0 - (777…..7)
 Range for n integer
bits = (1 – 8
-m
)
Example: F A F A . B
.
Place value
R=16
a−1
a0
a1
a2
a3
= (a3×R
3
)+(a2×R
2
)+(a1×R
1
)+(a0×R
0
)+(a−1×R
−1
)
Weight
= ( × 16
3
) + ( × 16
2
) + ( × 16
1
) + ( × 16
0
) + ( × 16
−1
)
= 15 x 4096 + 10 x 256 + 15 x 16 + 10 x 1 + 11 x 0.0625 17/05/2022 8
 Base, or Radix is 16
 So weight = 16𝑛
regarding the power of
16
 Coefficients aj = { 0,
1,2,3,4,5,6,7,8,9,A,B,C,
D,F}
 Range for n integer
bits = 0 – (16
n
– 1 )
Minimum Maximum
= 000…..0 - (FFF…..F)
 Range for n integer
bits = (1 – F
-m
)
17/05/2022
https://www.youtube.com/c/LearnRigorouslywithFarwahAhmad
9

More Related Content

Similar to DLD-Lecture 2 Number Representation.pdf

Observations on Ternary Quadratic Equation z2 = 82x2 +y2
Observations on Ternary Quadratic Equation z2 = 82x2 +y2Observations on Ternary Quadratic Equation z2 = 82x2 +y2
Observations on Ternary Quadratic Equation z2 = 82x2 +y2IRJET Journal
 
Sim math 9 factoring
Sim math 9 factoringSim math 9 factoring
Sim math 9 factoringRoqueGerale
 
Cbse Class 12 Maths Sample Paper 2013 Model 3
Cbse Class 12 Maths Sample Paper 2013 Model 3Cbse Class 12 Maths Sample Paper 2013 Model 3
Cbse Class 12 Maths Sample Paper 2013 Model 3Sunaina Rawat
 
Solutions Manual for Calculus Early Transcendentals 10th Edition by Anton
Solutions Manual for Calculus Early Transcendentals 10th Edition by AntonSolutions Manual for Calculus Early Transcendentals 10th Edition by Anton
Solutions Manual for Calculus Early Transcendentals 10th Edition by AntonPamelaew
 
Valor numerico de un termino algebraico
Valor numerico de un termino algebraicoValor numerico de un termino algebraico
Valor numerico de un termino algebraicoRamiro Muñoz
 
対応点を用いないローリングシャッタ歪み補正と映像安定化論文
対応点を用いないローリングシャッタ歪み補正と映像安定化論文対応点を用いないローリングシャッタ歪み補正と映像安定化論文
対応点を用いないローリングシャッタ歪み補正と映像安定化論文doboncho
 
Reed solomon Encoder and Decoder
Reed solomon Encoder and DecoderReed solomon Encoder and Decoder
Reed solomon Encoder and DecoderAmeer H Ali
 
51542 0131469657 ism-1
51542 0131469657 ism-151542 0131469657 ism-1
51542 0131469657 ism-1Ani_Agustina
 
Calculus Early Transcendentals 10th Edition Anton Solutions Manual
Calculus Early Transcendentals 10th Edition Anton Solutions ManualCalculus Early Transcendentals 10th Edition Anton Solutions Manual
Calculus Early Transcendentals 10th Edition Anton Solutions Manualnodyligomi
 
Integration techniques
Integration techniquesIntegration techniques
Integration techniquesKrishna Gali
 
Direct split-radix algorithm for fast computation of type-II discrete Hartley...
Direct split-radix algorithm for fast computation of type-II discrete Hartley...Direct split-radix algorithm for fast computation of type-II discrete Hartley...
Direct split-radix algorithm for fast computation of type-II discrete Hartley...TELKOMNIKA JOURNAL
 
51543 0131469657 ism-2
51543 0131469657 ism-251543 0131469657 ism-2
51543 0131469657 ism-2Carlos Fuentes
 
20120523123639 relationsfunctionsclass 11
20120523123639 relationsfunctionsclass 1120120523123639 relationsfunctionsclass 11
20120523123639 relationsfunctionsclass 11aggarwalsachin1999
 

Similar to DLD-Lecture 2 Number Representation.pdf (20)

Observations on Ternary Quadratic Equation z2 = 82x2 +y2
Observations on Ternary Quadratic Equation z2 = 82x2 +y2Observations on Ternary Quadratic Equation z2 = 82x2 +y2
Observations on Ternary Quadratic Equation z2 = 82x2 +y2
 
Sim math 9 factoring
Sim math 9 factoringSim math 9 factoring
Sim math 9 factoring
 
EPCA_MODULE-2.pptx
EPCA_MODULE-2.pptxEPCA_MODULE-2.pptx
EPCA_MODULE-2.pptx
 
Cbse Class 12 Maths Sample Paper 2013 Model 3
Cbse Class 12 Maths Sample Paper 2013 Model 3Cbse Class 12 Maths Sample Paper 2013 Model 3
Cbse Class 12 Maths Sample Paper 2013 Model 3
 
Class XII CBSE Mathematics Sample question paper with solution
Class XII CBSE Mathematics Sample question paper with solutionClass XII CBSE Mathematics Sample question paper with solution
Class XII CBSE Mathematics Sample question paper with solution
 
Solutions Manual for Calculus Early Transcendentals 10th Edition by Anton
Solutions Manual for Calculus Early Transcendentals 10th Edition by AntonSolutions Manual for Calculus Early Transcendentals 10th Edition by Anton
Solutions Manual for Calculus Early Transcendentals 10th Edition by Anton
 
Valor numerico de un termino algebraico
Valor numerico de un termino algebraicoValor numerico de un termino algebraico
Valor numerico de un termino algebraico
 
対応点を用いないローリングシャッタ歪み補正と映像安定化論文
対応点を用いないローリングシャッタ歪み補正と映像安定化論文対応点を用いないローリングシャッタ歪み補正と映像安定化論文
対応点を用いないローリングシャッタ歪み補正と映像安定化論文
 
Reed solomon Encoder and Decoder
Reed solomon Encoder and DecoderReed solomon Encoder and Decoder
Reed solomon Encoder and Decoder
 
Dubey
DubeyDubey
Dubey
 
1108 ch 11 day 8
1108 ch 11 day 81108 ch 11 day 8
1108 ch 11 day 8
 
51542 0131469657 ism-1
51542 0131469657 ism-151542 0131469657 ism-1
51542 0131469657 ism-1
 
Calculus Early Transcendentals 10th Edition Anton Solutions Manual
Calculus Early Transcendentals 10th Edition Anton Solutions ManualCalculus Early Transcendentals 10th Edition Anton Solutions Manual
Calculus Early Transcendentals 10th Edition Anton Solutions Manual
 
Integration techniques
Integration techniquesIntegration techniques
Integration techniques
 
Direct split-radix algorithm for fast computation of type-II discrete Hartley...
Direct split-radix algorithm for fast computation of type-II discrete Hartley...Direct split-radix algorithm for fast computation of type-II discrete Hartley...
Direct split-radix algorithm for fast computation of type-II discrete Hartley...
 
51543 0131469657 ism-2
51543 0131469657 ism-251543 0131469657 ism-2
51543 0131469657 ism-2
 
Capitulo 2 Soluciones Purcell 9na Edicion
Capitulo 2 Soluciones Purcell 9na EdicionCapitulo 2 Soluciones Purcell 9na Edicion
Capitulo 2 Soluciones Purcell 9na Edicion
 
2. the derivative
2. the derivative2. the derivative
2. the derivative
 
20120523123639 relationsfunctionsclass 11
20120523123639 relationsfunctionsclass 1120120523123639 relationsfunctionsclass 11
20120523123639 relationsfunctionsclass 11
 
Sample question paper 2 with solution
Sample question paper 2 with solutionSample question paper 2 with solution
Sample question paper 2 with solution
 

More from Farwah Ahmad

Signed Magnitude Representation.pdf
Signed Magnitude Representation.pdfSigned Magnitude Representation.pdf
Signed Magnitude Representation.pdfFarwah Ahmad
 
(r-1)'s complement of fractional number.pdf
(r-1)'s complement of fractional number.pdf(r-1)'s complement of fractional number.pdf
(r-1)'s complement of fractional number.pdfFarwah Ahmad
 
Complement Number System.pdf
Complement Number System.pdfComplement Number System.pdf
Complement Number System.pdfFarwah Ahmad
 
DLD-Lecture 4 Number System Conversion.pdf
DLD-Lecture 4 Number System Conversion.pdfDLD-Lecture 4 Number System Conversion.pdf
DLD-Lecture 4 Number System Conversion.pdfFarwah Ahmad
 
Why Base-R system.pdf
Why Base-R system.pdfWhy Base-R system.pdf
Why Base-R system.pdfFarwah Ahmad
 
How to count in Base "R" system? (Binary, Octal, Decimal, Hexadecimal)
How to count in Base "R" system? (Binary, Octal, Decimal, Hexadecimal)How to count in Base "R" system? (Binary, Octal, Decimal, Hexadecimal)
How to count in Base "R" system? (Binary, Octal, Decimal, Hexadecimal)Farwah Ahmad
 

More from Farwah Ahmad (6)

Signed Magnitude Representation.pdf
Signed Magnitude Representation.pdfSigned Magnitude Representation.pdf
Signed Magnitude Representation.pdf
 
(r-1)'s complement of fractional number.pdf
(r-1)'s complement of fractional number.pdf(r-1)'s complement of fractional number.pdf
(r-1)'s complement of fractional number.pdf
 
Complement Number System.pdf
Complement Number System.pdfComplement Number System.pdf
Complement Number System.pdf
 
DLD-Lecture 4 Number System Conversion.pdf
DLD-Lecture 4 Number System Conversion.pdfDLD-Lecture 4 Number System Conversion.pdf
DLD-Lecture 4 Number System Conversion.pdf
 
Why Base-R system.pdf
Why Base-R system.pdfWhy Base-R system.pdf
Why Base-R system.pdf
 
How to count in Base "R" system? (Binary, Octal, Decimal, Hexadecimal)
How to count in Base "R" system? (Binary, Octal, Decimal, Hexadecimal)How to count in Base "R" system? (Binary, Octal, Decimal, Hexadecimal)
How to count in Base "R" system? (Binary, Octal, Decimal, Hexadecimal)
 

Recently uploaded

HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptxHMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptxmarlenawright1
 
REMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptxREMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptxDr. Ravikiran H M Gowda
 
Towards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxTowards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxJisc
 
How to Add New Custom Addons Path in Odoo 17
How to Add New Custom Addons Path in Odoo 17How to Add New Custom Addons Path in Odoo 17
How to Add New Custom Addons Path in Odoo 17Celine George
 
Spellings Wk 4 and Wk 5 for Grade 4 at CAPS
Spellings Wk 4 and Wk 5 for Grade 4 at CAPSSpellings Wk 4 and Wk 5 for Grade 4 at CAPS
Spellings Wk 4 and Wk 5 for Grade 4 at CAPSAnaAcapella
 
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...Nguyen Thanh Tu Collection
 
Tatlong Kwento ni Lola basyang-1.pdf arts
Tatlong Kwento ni Lola basyang-1.pdf artsTatlong Kwento ni Lola basyang-1.pdf arts
Tatlong Kwento ni Lola basyang-1.pdf artsNbelano25
 
PANDITA RAMABAI- Indian political thought GENDER.pptx
PANDITA RAMABAI- Indian political thought GENDER.pptxPANDITA RAMABAI- Indian political thought GENDER.pptx
PANDITA RAMABAI- Indian political thought GENDER.pptxakanksha16arora
 
Orientation Canvas Course Presentation.pdf
Orientation Canvas Course Presentation.pdfOrientation Canvas Course Presentation.pdf
Orientation Canvas Course Presentation.pdfElizabeth Walsh
 
Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)Jisc
 
Play hard learn harder: The Serious Business of Play
Play hard learn harder:  The Serious Business of PlayPlay hard learn harder:  The Serious Business of Play
Play hard learn harder: The Serious Business of PlayPooky Knightsmith
 
What is 3 Way Matching Process in Odoo 17.pptx
What is 3 Way Matching Process in Odoo 17.pptxWhat is 3 Way Matching Process in Odoo 17.pptx
What is 3 Way Matching Process in Odoo 17.pptxCeline George
 
OSCM Unit 2_Operations Processes & Systems
OSCM Unit 2_Operations Processes & SystemsOSCM Unit 2_Operations Processes & Systems
OSCM Unit 2_Operations Processes & SystemsSandeep D Chaudhary
 
Graduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - EnglishGraduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - Englishneillewis46
 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Jisc
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and ModificationsMJDuyan
 
Details on CBSE Compartment Exam.pptx1111
Details on CBSE Compartment Exam.pptx1111Details on CBSE Compartment Exam.pptx1111
Details on CBSE Compartment Exam.pptx1111GangaMaiya1
 
Wellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptxWellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptxJisc
 
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...Amil baba
 

Recently uploaded (20)

HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptxHMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
 
REMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptxREMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptx
 
Towards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxTowards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptx
 
How to Add New Custom Addons Path in Odoo 17
How to Add New Custom Addons Path in Odoo 17How to Add New Custom Addons Path in Odoo 17
How to Add New Custom Addons Path in Odoo 17
 
Spellings Wk 4 and Wk 5 for Grade 4 at CAPS
Spellings Wk 4 and Wk 5 for Grade 4 at CAPSSpellings Wk 4 and Wk 5 for Grade 4 at CAPS
Spellings Wk 4 and Wk 5 for Grade 4 at CAPS
 
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
 
Tatlong Kwento ni Lola basyang-1.pdf arts
Tatlong Kwento ni Lola basyang-1.pdf artsTatlong Kwento ni Lola basyang-1.pdf arts
Tatlong Kwento ni Lola basyang-1.pdf arts
 
PANDITA RAMABAI- Indian political thought GENDER.pptx
PANDITA RAMABAI- Indian political thought GENDER.pptxPANDITA RAMABAI- Indian political thought GENDER.pptx
PANDITA RAMABAI- Indian political thought GENDER.pptx
 
Orientation Canvas Course Presentation.pdf
Orientation Canvas Course Presentation.pdfOrientation Canvas Course Presentation.pdf
Orientation Canvas Course Presentation.pdf
 
Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)
 
Play hard learn harder: The Serious Business of Play
Play hard learn harder:  The Serious Business of PlayPlay hard learn harder:  The Serious Business of Play
Play hard learn harder: The Serious Business of Play
 
What is 3 Way Matching Process in Odoo 17.pptx
What is 3 Way Matching Process in Odoo 17.pptxWhat is 3 Way Matching Process in Odoo 17.pptx
What is 3 Way Matching Process in Odoo 17.pptx
 
Including Mental Health Support in Project Delivery, 14 May.pdf
Including Mental Health Support in Project Delivery, 14 May.pdfIncluding Mental Health Support in Project Delivery, 14 May.pdf
Including Mental Health Support in Project Delivery, 14 May.pdf
 
OSCM Unit 2_Operations Processes & Systems
OSCM Unit 2_Operations Processes & SystemsOSCM Unit 2_Operations Processes & Systems
OSCM Unit 2_Operations Processes & Systems
 
Graduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - EnglishGraduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - English
 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and Modifications
 
Details on CBSE Compartment Exam.pptx1111
Details on CBSE Compartment Exam.pptx1111Details on CBSE Compartment Exam.pptx1111
Details on CBSE Compartment Exam.pptx1111
 
Wellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptxWellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptx
 
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
 

DLD-Lecture 2 Number Representation.pdf

  • 1. Lecturer: Ms. Farwah Ahmad 17/05/2022 https://www.youtube.com/c/LearnRigorouslywithFarwahAhmad 1
  • 2. Course Content: Recommended Books: 1. Digital Logic and Computer Design, Morris Mano, Prentice Hall, 1996 2. Digital Fundamentals, Thomas L. Floyd 17/05/2022 https://www.youtube.com/c/LearnRigorouslywithFarwahAhmad 2 Digital Systems Number system
  • 4. General Notation Base or Radix MSD (N)R = an-1. R n-1 + ...............+ a2 .R 2 + a1.R + a0 + a-1. R -1 + a-2 . R -2 + ...........+ a-m . R -m . LSD Place Value Fractional Side Coefficients an = a5a4a3a2a1a0 . a-1a-2a-3 Integral Side Radix Point Powers from right to left Powers from left to right N = (𝑎5𝑎4𝑎3𝑎2𝑎1𝑎0 . 𝑎−1𝑎−2𝑎−3 ) R ( Power = weight)  Where N is any number.  Where “R” is base or radix of number system.  Possible Digits : (0,1, . . . , R − 1)  an are the coefficients and the subscript value n gives the place value.  Any Coefficient an has weight = R n  an-1. R n-1 = most significant digit (MSD)  a -m . R -m = least significant digit (LSD) 17/05/2022 https://www.youtube.com/c/LearnRigorouslywithFarwahAhmad 4
  • 5. Example: 1 9 3 8 . 2 5 7 . Place value R=10 a−1 a0 a1 a2 a3 a−2 a−3 = (a3×R 3 )+(a2×R 2 )+(a1×R 1 )+(a0×R 0 )+(a−1×R −1 )+(a−2×R −2 )+(a−3 × R −3 ) Weight = ( × 10 3 ) + ( × 10 2 ) + ( × 10 1 ) + ( × 10 0 ) + ( × 10 −1 ) + ( × 10 −2 ) + ( × 10 −3 ) = 1 x 1000 + 9 x 100 + 3 x 10 + 8 x 1 + 2 x 0.1 + 5 x 0.01 + 7 x 0.001  Base, or Radix is 10  So weight = 10𝑛 regarding the power of 10  Coefficients aj = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 }  Range for n integer bits = 0 – (10 n – 1 ) Minimum Maximum = 000…..0 - (999…..9)  Range for n integer bits = (1 – 10 -m ) 17/05/2022 5
  • 6. Example: 1 1 0 0 . 1 1 1 . Place value R=2 a−1 a0 a1 a2 a3 a−2 a−3 = (a3×R 3 )+(a2×R 2 )+(a1×R 1 )+(a0×R 0 )+(a−1×R −1 )+(a−2×R −2 )+(a−3 × R −3 ) Weight = ( × 2 3 ) + ( × 2 2 ) + ( × 2 1 ) + ( × 2 0 ) + ( × 2 −1 ) + ( × 2 −2 ) + ( × 2 −3 ) = 1 x 8 + 1 x 4 + 0 x 2 + 0 x 1 + 1 x 0.5 + 1 x 0.25 + 1 x 0.125 17/05/2022 6  Base, or Radix is 2  So weight = 2𝑛 regarding the power of 2  Coefficients aj = { 0, 1}  Range for n integer bits = 0 – (2 n – 1 ) Minimum Maximum = 000…..0 - (111…..1)  Range for n integer bits = (1 – 2 -m )
  • 7. Example: 2 6 . 2 4 . Place value R=8 a−1 a0 a1 a−2 = (a1×R 1 )+(a0×R 0 )+(a−1×R −1 )+(a−2×R −2 ) Weight = ( × 8 1 ) + ( × 8 0 ) + ( × 8 −1 ) + ( × 8 −2 ) = 2 x 8 + 6 x 1 + 2 x 0.125 + 4 x 0.015625 17/05/2022 7  Base, or Radix is 8  So weight = 8𝑛 regarding the power of 8  Coefficients aj = { 0, 1,2,3,4,5,6,7}  Range for n integer bits = 0 – (8 n – 1 ) Minimum Maximum = 000…..0 - (777…..7)  Range for n integer bits = (1 – 8 -m )
  • 8. Example: F A F A . B . Place value R=16 a−1 a0 a1 a2 a3 = (a3×R 3 )+(a2×R 2 )+(a1×R 1 )+(a0×R 0 )+(a−1×R −1 ) Weight = ( × 16 3 ) + ( × 16 2 ) + ( × 16 1 ) + ( × 16 0 ) + ( × 16 −1 ) = 15 x 4096 + 10 x 256 + 15 x 16 + 10 x 1 + 11 x 0.0625 17/05/2022 8  Base, or Radix is 16  So weight = 16𝑛 regarding the power of 16  Coefficients aj = { 0, 1,2,3,4,5,6,7,8,9,A,B,C, D,F}  Range for n integer bits = 0 – (16 n – 1 ) Minimum Maximum = 000…..0 - (FFF…..F)  Range for n integer bits = (1 – F -m )