1) IEEE 754 Floating Point Standard: This standard is used to represent floating-point numbers (real numbers) digitally in computer memory. The standard provides two representations which have different accuracies: double precision and single precision. > Double Precision- 8bytes = 64 bits o Bit 63 (one bit): Sign (0=positive, 1=negative) o Bits 62 to 52 (11 bits): Exponent, biased by 1023 o Bits 51 to 0 (52 bits): Fraction f of the number 1.f Single Precision – 4bytes = 32 bits o Bit 31 (one bit): Sign (0-positive, 1-negative) o Bits 30 to 23 (8 bits): Exponent, biased by 127 o Bits 22 to 0 (23 bits): Fraction f of the number 1.f Procedure to Find the Double-Precision Representation of a Number x: Let the representation be (b63, b62, ..., b, b,, bo) with b63 being the most-significant bit and bo being the least significant bit. Sign Bit: x20 (0, l1, x< 0 Ехрonent: Replace x with |x], i.e. ignore the sign of x. We need to find an integer e such that Ose< 2047 and The value of e can be found as [log2(x)] The bits (b62, b61, ., bs2) are the binary representation of f – 1023. Fraction: The fraction part f is the first 52 bits of the binary representation of x2e – 1. It can be found as follows: y+x2-e Repeat until 52 bits are obtained { y+ 2y if y >1 { set new bit as 1 y+ y-1

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
icon
Related questions
Question
1) IEEE 754 Floating Point Standard:
This standard is used to represent floating-point numbers (real numbers) digitally in
computer memory. The standard provides two representations which have different
accuracies: double precision and single precision.
> Double Precision – 8bytes = 64 bits
o Bit 63 (one bit): Sign (0=positive, 1=negative)
o Bits 62 to 52 (11 bits): Exponent, biased by 1023
o Bits 51 to 0 (52 bits): Fraction f of the number 1.f
Single Precision – 4bytes = 32 bits
o Bit 31 (one bit): Sign (0-positive, 1=negative)
o Bits 30 to 23 (8 bits): Exponent, biased by 127
o Bits 22 to 0 (23 bits): Fraction f of the number 1.f
Procedure to Find the Double-Precision Representation of a Number x:
Let the representation be (b63, b62, ..., b, b,, bo) with b63 being the most-significant
bit and bo being the least significant bit.
Sign Bit:
(0,
x20
l1,
x< 0
Еxрonent:
Replace x with |x], i.e. ignore the sign of x. We need to find an integer e such that
Ose< 2047
and
The value of e can be found as
log:(x)]
The bits (b62, b61, ., b52) are the binary representation of f – 1023.
Fraction:
The fraction part f is the first 52 bits of the binary representation of x2 – 1. It can
be found as follows:
y +x2-e
Repeat until 52 bits are obtained
{
y+ 2y
if y >1
{
set new bit as 1
y + y-1
else
set new bit as 0
EE 426
Homework 2
Spring 2020/2021
a) Find the double-precision representation of –3.85 x 10°.
Transcribed Image Text:1) IEEE 754 Floating Point Standard: This standard is used to represent floating-point numbers (real numbers) digitally in computer memory. The standard provides two representations which have different accuracies: double precision and single precision. > Double Precision – 8bytes = 64 bits o Bit 63 (one bit): Sign (0=positive, 1=negative) o Bits 62 to 52 (11 bits): Exponent, biased by 1023 o Bits 51 to 0 (52 bits): Fraction f of the number 1.f Single Precision – 4bytes = 32 bits o Bit 31 (one bit): Sign (0-positive, 1=negative) o Bits 30 to 23 (8 bits): Exponent, biased by 127 o Bits 22 to 0 (23 bits): Fraction f of the number 1.f Procedure to Find the Double-Precision Representation of a Number x: Let the representation be (b63, b62, ..., b, b,, bo) with b63 being the most-significant bit and bo being the least significant bit. Sign Bit: (0, x20 l1, x< 0 Еxрonent: Replace x with |x], i.e. ignore the sign of x. We need to find an integer e such that Ose< 2047 and The value of e can be found as log:(x)] The bits (b62, b61, ., b52) are the binary representation of f – 1023. Fraction: The fraction part f is the first 52 bits of the binary representation of x2 – 1. It can be found as follows: y +x2-e Repeat until 52 bits are obtained { y+ 2y if y >1 { set new bit as 1 y + y-1 else set new bit as 0 EE 426 Homework 2 Spring 2020/2021 a) Find the double-precision representation of –3.85 x 10°.
Expert Solution
steps

Step by step

Solved in 3 steps with 3 images

Blurred answer
Knowledge Booster
Binary numbers
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.
Similar questions
Recommended textbooks for you
Database System Concepts
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)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education