SlideShare a Scribd company logo
1 of 3
Download to read offline
Number Systems
Exercises
Robin Hirsch
Exercises
1. 1010 + 1101Answer: 10111
2. 1011 + 111Answer: 10010
3. 1111 − 1010Answer: 101
4. 1110 − 101 Answer: 1001
5. 1101 × 101 Answer: 1000001
6. 1001 ÷ 101 Answer: 1r101 or 1.11001100 . . . which we write 1.
.
1 10
.
0
7. What is the biggest binary number you can write with 5 bits? Answer:
31
8. What is the biggest binary number you can write with n bits? Answer:
2n
− 1
9. Roughly, how many bits do you need to write the number n in binary?
Answer: roughly log2 n, exactly ⌈log2(n + 1)⌉
10. Write 3
4 in binary, using a “binary point” 0.??. Answer: 0.11
11. Write 2
3 in binary. Answer: 0.101010 . . . = 0.
.
1
.
0
12. Which fractions recur infinitely in binary and which terminate? Answer:
if demoninator of fraction in lowest form is power of 2 then it terminates,
else not.
Exercises
13. Convert the binary number 1101101111110101 to hex. Answer: DBF5
14. Convert the hex number ABC7 to binary. Answer: 101010110111
15. In hex, 2BFC + 54A7. Answer: 80A3
16. In hex, AC74 − B3F. Answer: A135
17. If a number has k digits in hex, how many digits (bits) does it have in
binary? Answer: k
4
1
18. If a number has k digits in decimal, roughly how many digits does it have
in binary? Answer: roughly k
log2 10
∼= k
3
19. If a number has k digits base a, roughly how many digits does it have in
base b? Answer: roughly k
logb a = k × logab
Exercises Write the following decimal numbers in eight bit two’s complement,
do the addition/subtraction, convert your answer back to decimal.
20. −
3++
11 Answer: −3 = 11111101. So −
3++
11 = 11111101+00001011 =
00001000
21. +
125 +−
40 Answer: 125 = 01111101, −
40 = 11011000 so 125 +−
40 =
01010101 = 85
22. +
5 +−
7Answer: 00000101 + 11111001 = 11111110 =−
2
23. −
23 −−
18. Answer: 11101001 + 11101110 = 11010111 =−
41
For n bit two’s complement what is the range of numbers you can represent?
Answer: Biggest positive numer is 0
n−1
11 . . . 1 = 2n−1
− 1. Negative numbers go
down from −1 =
n
1 . . . 11 down to 1
n−2
00 . . . 0 1 =−
2n−1
−1. But negative numbers
can go one lower still: least negative number is 1
n−1
00 . . . 0 =−
2n−1
. So range of
numbers is [−
2n−1
,+
2n−1
− 1].
Exercises Write the following fractions in binary. Use one sign bit and four
bits after the binary point.
24. 5
8 Answer: 0.1010
25. −5
8 Answer: negate previous answer, i.e. flip all bits and add one to lsb,
so 1.0110
Convert the following binary fractions to ordinary fractions.
26. 0.1000 Answer: 1
2
27. 1.0001 Answer: − 15
16
28. 0.1111 Answer: 15
16
29. 1.1111 Answer: − 1
16
What fractions can be represented as binary fractions with one sign bit and four
bits after the binary point? Answer: [−
1,+ 15
16 ]
2
Exercises Using 5 bits for the mantissa and 5 bits for the exponent, write the
following numbers in twos complement binary.
30. 5
16 Answer: 0.0101 0000, mantissa represents 5
16 exponent represents 20
=
1
31. 1011
4 Answer: Bad example. This number is 21
4 , so mantissa should be
21
32 = 0.10101, but four available bits are not enough to represent this.
Can approximate by losing last bit, 0.1010 0011, i.e. 5
8 × 23
= 5, so the
quarter gets lost.
32. 1
1024 Answer: 0.1000 10111
33. − 3
512 Answer: 0.0011 11001
3

More Related Content

What's hot

binary arithmetic rules
binary arithmetic rulesbinary arithmetic rules
binary arithmetic rulesstudent
 
Floating point representation
Floating point representation Floating point representation
Floating point representation SVisnuDharsini
 
Number system utm notes
Number system utm notesNumber system utm notes
Number system utm notesKurenai Ryu
 
B sc3 unit 2 number system
B sc3  unit 2 number systemB sc3  unit 2 number system
B sc3 unit 2 number systemMahiboobAliMulla
 
Data representation
Data representationData representation
Data representationChew Hoong
 
Binaty Arithmetic and Binary coding schemes
Binaty Arithmetic and Binary coding schemesBinaty Arithmetic and Binary coding schemes
Binaty Arithmetic and Binary coding schemesDr. Anita Goel
 
EC Binary Substraction using 1's Complement,2's Complement
EC Binary Substraction using 1's Complement,2's ComplementEC Binary Substraction using 1's Complement,2's Complement
EC Binary Substraction using 1's Complement,2's ComplementAmberSinghal1
 
digital logic circuits, digital component floting and fixed point
digital logic circuits, digital component floting and fixed pointdigital logic circuits, digital component floting and fixed point
digital logic circuits, digital component floting and fixed pointRai University
 
Expressing Rational Numbers from Decimal Form to Fraction Form
Expressing Rational Numbers from Decimal Form to Fraction FormExpressing Rational Numbers from Decimal Form to Fraction Form
Expressing Rational Numbers from Decimal Form to Fraction FormFloroQPalomerasJr
 

What's hot (20)

binary arithmetic rules
binary arithmetic rulesbinary arithmetic rules
binary arithmetic rules
 
Floating point representation
Floating point representation Floating point representation
Floating point representation
 
Number systems tutorial
Number systems tutorialNumber systems tutorial
Number systems tutorial
 
Complements
ComplementsComplements
Complements
 
Number system utm notes
Number system utm notesNumber system utm notes
Number system utm notes
 
B sc3 unit 2 number system
B sc3  unit 2 number systemB sc3  unit 2 number system
B sc3 unit 2 number system
 
Digital logic mohammed salim ch2
Digital logic mohammed salim ch2Digital logic mohammed salim ch2
Digital logic mohammed salim ch2
 
Binary true ppt
Binary true pptBinary true ppt
Binary true ppt
 
Pp02
Pp02Pp02
Pp02
 
Floating Point Numbers
Floating Point NumbersFloating Point Numbers
Floating Point Numbers
 
Binary arithmetic
Binary arithmeticBinary arithmetic
Binary arithmetic
 
Data representation
Data representationData representation
Data representation
 
Binary operations
 Binary operations Binary operations
Binary operations
 
Binaty Arithmetic and Binary coding schemes
Binaty Arithmetic and Binary coding schemesBinaty Arithmetic and Binary coding schemes
Binaty Arithmetic and Binary coding schemes
 
EC Binary Substraction using 1's Complement,2's Complement
EC Binary Substraction using 1's Complement,2's ComplementEC Binary Substraction using 1's Complement,2's Complement
EC Binary Substraction using 1's Complement,2's Complement
 
Sig figs.ppt
Sig figs.pptSig figs.ppt
Sig figs.ppt
 
digital logic circuits, digital component floting and fixed point
digital logic circuits, digital component floting and fixed pointdigital logic circuits, digital component floting and fixed point
digital logic circuits, digital component floting and fixed point
 
06 floating point
06 floating point06 floating point
06 floating point
 
Class03
Class03Class03
Class03
 
Expressing Rational Numbers from Decimal Form to Fraction Form
Expressing Rational Numbers from Decimal Form to Fraction FormExpressing Rational Numbers from Decimal Form to Fraction Form
Expressing Rational Numbers from Decimal Form to Fraction Form
 

Similar to Ncp computer appls num sys3 pramod

ch3a-binary-numbers.ppt
ch3a-binary-numbers.pptch3a-binary-numbers.ppt
ch3a-binary-numbers.pptRabiaAsif31
 
ch3a-binary-numbers.ppt
ch3a-binary-numbers.pptch3a-binary-numbers.ppt
ch3a-binary-numbers.pptssuser52a19e
 
Review on Number Systems: Decimal, Binary, and Hexadecimal
Review on Number Systems: Decimal, Binary, and HexadecimalReview on Number Systems: Decimal, Binary, and Hexadecimal
Review on Number Systems: Decimal, Binary, and HexadecimalUtkirjonUbaydullaev1
 
ch3a-binary-numbers.ppt
ch3a-binary-numbers.pptch3a-binary-numbers.ppt
ch3a-binary-numbers.pptRAJKUMARP63
 
BINARY NUMBER SYSTEM
BINARY NUMBER SYSTEMBINARY NUMBER SYSTEM
BINARY NUMBER SYSTEMZaheer Abbasi
 
Digital_Electronics_Basics.pdf
Digital_Electronics_Basics.pdfDigital_Electronics_Basics.pdf
Digital_Electronics_Basics.pdfrahul143341
 
Integer Representation
Integer RepresentationInteger Representation
Integer Representationgavhays
 
Logic Design - Chapter 1: Number Systems and Codes
Logic Design - Chapter 1: Number Systems and CodesLogic Design - Chapter 1: Number Systems and Codes
Logic Design - Chapter 1: Number Systems and CodesGouda Mando
 
Number system in Digital Electronics
Number system in Digital ElectronicsNumber system in Digital Electronics
Number system in Digital ElectronicsJanki Shah
 
Floating_point_representation.pdf
Floating_point_representation.pdfFloating_point_representation.pdf
Floating_point_representation.pdfRameshK531901
 

Similar to Ncp computer appls num sys3 pramod (20)

Number system
Number systemNumber system
Number system
 
ch2.pdf
ch2.pdfch2.pdf
ch2.pdf
 
ch3a-binary-numbers.ppt
ch3a-binary-numbers.pptch3a-binary-numbers.ppt
ch3a-binary-numbers.ppt
 
ch3a-binary-numbers.ppt
ch3a-binary-numbers.pptch3a-binary-numbers.ppt
ch3a-binary-numbers.ppt
 
ch3a-binary-numbers.ppt
ch3a-binary-numbers.pptch3a-binary-numbers.ppt
ch3a-binary-numbers.ppt
 
ch3a-binary-numbers.ppt
ch3a-binary-numbers.pptch3a-binary-numbers.ppt
ch3a-binary-numbers.ppt
 
binary-numbers.ppt
binary-numbers.pptbinary-numbers.ppt
binary-numbers.ppt
 
Review on Number Systems: Decimal, Binary, and Hexadecimal
Review on Number Systems: Decimal, Binary, and HexadecimalReview on Number Systems: Decimal, Binary, and Hexadecimal
Review on Number Systems: Decimal, Binary, and Hexadecimal
 
ch3a-binary-numbers.ppt
ch3a-binary-numbers.pptch3a-binary-numbers.ppt
ch3a-binary-numbers.ppt
 
number system
number systemnumber system
number system
 
lec2_BinaryArithmetic.ppt
lec2_BinaryArithmetic.pptlec2_BinaryArithmetic.ppt
lec2_BinaryArithmetic.ppt
 
unit-2_DL.pdf
unit-2_DL.pdfunit-2_DL.pdf
unit-2_DL.pdf
 
BINARY NUMBER SYSTEM
BINARY NUMBER SYSTEMBINARY NUMBER SYSTEM
BINARY NUMBER SYSTEM
 
Digital_Electronics_Basics.pdf
Digital_Electronics_Basics.pdfDigital_Electronics_Basics.pdf
Digital_Electronics_Basics.pdf
 
Integer Representation
Integer RepresentationInteger Representation
Integer Representation
 
3.4
3.43.4
3.4
 
uyuyuy.pdf
uyuyuy.pdfuyuyuy.pdf
uyuyuy.pdf
 
Logic Design - Chapter 1: Number Systems and Codes
Logic Design - Chapter 1: Number Systems and CodesLogic Design - Chapter 1: Number Systems and Codes
Logic Design - Chapter 1: Number Systems and Codes
 
Number system in Digital Electronics
Number system in Digital ElectronicsNumber system in Digital Electronics
Number system in Digital Electronics
 
Floating_point_representation.pdf
Floating_point_representation.pdfFloating_point_representation.pdf
Floating_point_representation.pdf
 

Recently uploaded

The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13Steve Thomason
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformChameera Dedduwage
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeThiyagu K
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3JemimahLaneBuaron
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...EduSkills OECD
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactdawncurless
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104misteraugie
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingTechSoup
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfAdmir Softic
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Celine George
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxheathfieldcps1
 
Class 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfClass 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfAyushMahapatra5
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxiammrhaywood
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdfQucHHunhnh
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...christianmathematics
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhikauryashika82
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfJayanti Pande
 
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfchloefrazer622
 

Recently uploaded (20)

The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy Reform
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and Mode
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
 
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impact
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy Consulting
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdf
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 
Class 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfClass 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdf
 
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptxINDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdf
 
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdf
 

Ncp computer appls num sys3 pramod

  • 1. Number Systems Exercises Robin Hirsch Exercises 1. 1010 + 1101Answer: 10111 2. 1011 + 111Answer: 10010 3. 1111 − 1010Answer: 101 4. 1110 − 101 Answer: 1001 5. 1101 × 101 Answer: 1000001 6. 1001 ÷ 101 Answer: 1r101 or 1.11001100 . . . which we write 1. . 1 10 . 0 7. What is the biggest binary number you can write with 5 bits? Answer: 31 8. What is the biggest binary number you can write with n bits? Answer: 2n − 1 9. Roughly, how many bits do you need to write the number n in binary? Answer: roughly log2 n, exactly ⌈log2(n + 1)⌉ 10. Write 3 4 in binary, using a “binary point” 0.??. Answer: 0.11 11. Write 2 3 in binary. Answer: 0.101010 . . . = 0. . 1 . 0 12. Which fractions recur infinitely in binary and which terminate? Answer: if demoninator of fraction in lowest form is power of 2 then it terminates, else not. Exercises 13. Convert the binary number 1101101111110101 to hex. Answer: DBF5 14. Convert the hex number ABC7 to binary. Answer: 101010110111 15. In hex, 2BFC + 54A7. Answer: 80A3 16. In hex, AC74 − B3F. Answer: A135 17. If a number has k digits in hex, how many digits (bits) does it have in binary? Answer: k 4 1
  • 2. 18. If a number has k digits in decimal, roughly how many digits does it have in binary? Answer: roughly k log2 10 ∼= k 3 19. If a number has k digits base a, roughly how many digits does it have in base b? Answer: roughly k logb a = k × logab Exercises Write the following decimal numbers in eight bit two’s complement, do the addition/subtraction, convert your answer back to decimal. 20. − 3++ 11 Answer: −3 = 11111101. So − 3++ 11 = 11111101+00001011 = 00001000 21. + 125 +− 40 Answer: 125 = 01111101, − 40 = 11011000 so 125 +− 40 = 01010101 = 85 22. + 5 +− 7Answer: 00000101 + 11111001 = 11111110 =− 2 23. − 23 −− 18. Answer: 11101001 + 11101110 = 11010111 =− 41 For n bit two’s complement what is the range of numbers you can represent? Answer: Biggest positive numer is 0 n−1 11 . . . 1 = 2n−1 − 1. Negative numbers go down from −1 = n 1 . . . 11 down to 1 n−2 00 . . . 0 1 =− 2n−1 −1. But negative numbers can go one lower still: least negative number is 1 n−1 00 . . . 0 =− 2n−1 . So range of numbers is [− 2n−1 ,+ 2n−1 − 1]. Exercises Write the following fractions in binary. Use one sign bit and four bits after the binary point. 24. 5 8 Answer: 0.1010 25. −5 8 Answer: negate previous answer, i.e. flip all bits and add one to lsb, so 1.0110 Convert the following binary fractions to ordinary fractions. 26. 0.1000 Answer: 1 2 27. 1.0001 Answer: − 15 16 28. 0.1111 Answer: 15 16 29. 1.1111 Answer: − 1 16 What fractions can be represented as binary fractions with one sign bit and four bits after the binary point? Answer: [− 1,+ 15 16 ] 2
  • 3. Exercises Using 5 bits for the mantissa and 5 bits for the exponent, write the following numbers in twos complement binary. 30. 5 16 Answer: 0.0101 0000, mantissa represents 5 16 exponent represents 20 = 1 31. 1011 4 Answer: Bad example. This number is 21 4 , so mantissa should be 21 32 = 0.10101, but four available bits are not enough to represent this. Can approximate by losing last bit, 0.1010 0011, i.e. 5 8 × 23 = 5, so the quarter gets lost. 32. 1 1024 Answer: 0.1000 10111 33. − 3 512 Answer: 0.0011 11001 3