6. Convert -32.296875 to the floating-point binary representation (14-bit model used during the class).
6. Convert -32.296875 to the floating-point binary representation (14-bit model used during the class).
Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
Related questions
Question
Expert Solution
Step 1
To convert -32.296875 into floating point binary representation, first convert it into binary.
For this, divide the number by 2 and get the integer quotient for the next iteration. Record the remainder for the binary digit. Repeat the steps until the quotient is equal to 0.
quotient | remainder | |
2 | 32 | 0 |
2 | 16 | 0 |
2 | 8 | 0 |
2 | 4 | 0 |
2 | 2 | 0 |
2 | 1 | 1 |
0 |
32 = (100000)2
To convert the fraction part into binary, In the fraction multiply by 2 and record the resulting integer and fractional part. Continue multiplying by 2 until fractional part equal to zero.
0.296875 x 2 | 0.593740 | 0 |
0.593740 x 2 | 1.187480 | 1 |
0.187480 x 2 | 0.374960 | 0 |
0.374960 x 2 | 0.749920 | 0 |
0.749920 x 2 | 1.499840 | 1 |
.499840 x 2 | 0.999680 | 0 |
0.999680 x 2 | 1.999360 | 1 |
0.999360 x 2 | 1.998720 | 1 |
Hence, 0.296875=(0.01001011)2
Step by step
Solved in 2 steps
Knowledge Booster
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.Recommended textbooks for you
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education