1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Ainat [17]
3 years ago
8

Convert +41.50 in a IEEE 754 single precision format.

Computers and Technology
1 answer:
mrs_skeptik [129]3 years ago
8 0
<h2>Answer:</h2>

+41.50 = 0 10000100 01001100000000000000000  [single precision]

-72.125 = 1 10000000101 0010000010000000000000000000000000000000000000000000 [double precision]

<h2>Explanation:</h2>

(I) +41.50 using single precision

Follow the following steps:

(a) Single precision has 32 bits in total and is divided into three groups: <em>sign</em> (has 1 bit), an <em>exponent </em>(has 8 bits) and a <em>mantissa </em>(also called fraction, has 23 bits)

(b) Divide the number (41.50) into its whole and decimal parts:

Whole = 41

Decimal = 0.50

(c) Convert the whole part to binary:

<u>2    |    41</u>

<u>2    |    20 r 1</u>

<u>2    |    10 r 0</u>

<u>2    |    5 r 0</u>

<u>2    |    2 r 1</u>

<u>2    |    1 r 0</u>

<u>      |    0 r 1</u>

<u />

Reading upwards gives 41 = 101001₂

(d) Convert the decimal part to binary:

0.50 x 2 = 1.0  = 1 [number in front of decimal]

0.0 x 2 = 0.0 = 0  [number in front of decimal]

Reading downwards gives 0.5 = 10₂

(e) Put the two parts together as follows;

    101001.10₂

(f) Convert the result in (e) to its base 2 scientific notation:

Move the decimal to just before the leftmost bit as follows;

1.0100110

In doing so, we have moved over 5 numbers to the left. Therefore, the exponent is 5. Moving to the left gives a positive exponent while moving to the right gives a negative exponent.

Altogether we have;

1.0100110 x 2⁵

(g) Determine the sign bit of the number and display in binary: Since the number +41.50 is positive, the sign bit is 0.

(h) Determine the exponent bits.

Since this is a single precision conversion, the exponent bias is 127.

To get the exponent we add the exponent value from (e) to the exponent bias and get;

5 + 127 = 132

(i) Convert the exponent to binary:

<u>2    |    132</u>

<u>2    |    66 r 0</u>

<u>2    |    33 r 0</u>

<u>2    |    16 r 1</u>

<u>2    |    8 r 0</u>

<u>2    |    4 r 0</u>

<u>2    |    2 r 0</u>

<u>2    |    1 r 0</u>

<u>      |    0 r 1</u>

Reading upwards gives 132 = 10000100₂

(j) Determine the mantissa bits:

The mantissa is the rest of the number after the decimal of the base 2 scientific notation found in (f) above.

0100110 from 1.0100110 x 2⁵                  [<em>Just remove the leftmost 1 and the decimal point</em>]

(k) Combine the three parts: sign bit (1 bit), exponent bits (8 bits) and mantissa bits (23 bits)

sign bit = 0                [1 bit]

exponent bits = 10000100        [8 bits]

mantissa bits = 0100110        [7 out of 23 bits]

Then fill out the remaining part of the mantissa with zeros to make it 23 bits.

mantissa bits = 01001100000000000000000        

Putting all together we have

0 10000100 01001100000000000000000 as +41.50 in  a IEEE 754 single precision format.

(II) -72.125 using double precision

Follow the following steps:

(a) Double precision has 32 bits in total and is divided into three groups: <em>sign</em> (has 1 bit), an <em>exponent </em>(has 11 bits) and a <em>mantissa </em>(also called fraction, has 52 bits)

(b) Divide the number (72.125) into its whole and decimal parts:

Whole = 72

Decimal = 0.125

(c) Convert the whole part to binary:

<u>2    |    72</u>

<u>2    |    36 r 0</u>

<u>2    |    18 r 0</u>

<u>2    |    9 r 0</u>

<u>2    |    4 r 1</u>

<u>2    |    2 r 0</u>

<u>2    |    1 r 0</u>

<u>      |    0 r 1</u>

<u />

Reading upwards gives 72 = 1001000₂

(d) Convert the decimal part to binary:

0.125 x 2 = 0.25  = 0 [number in front of decimal]

0.25 x 2 = 0.50 = 0  [number in front of decimal]

0.50 x 2 = 1.00 = 1  [number in front of decimal]

0.00 x 2 = 0.00 = 0  [number in front of decimal]

Reading downwards gives 0.125 = 0010₂

(e) Put the two parts together as follows;

    1001000.0010₂

(f) Convert the result in (e) to its base 2 scientific notation:

Move the decimal to just before the leftmost bit as follows;

1.0010000010

In doing so, we have moved over 6 numbers to the left. Therefore, the exponent is 6. Moving to the left gives a positive exponent while moving to the right gives a negative exponent.

Altogether we have;

1.0010000010 x 2⁶

(g) Determine the sign bit of the number and display in binary: Since the number -72.125 is negative, the sign bit is 1.

(h) Determine the exponent bits.

Since this is a double precision conversion, the exponent bias is 1023.

To get the exponent we add the exponent value from (e) to the exponent bias and get;

6 + 1023 = 1029

(i) Convert the exponent to binary:

<u>2    |    1029</u>

<u>2    |    514 r 1</u>

<u>2    |    257 r 0</u>

<u>2    |    128 r 1</u>

<u>2    |    64 r 0</u>

<u>2    |    32 r 0</u>

<u>2    |    16 r 0</u>

<u>2    |    8 r 0</u>

<u>2    |    4 r 0</u>

<u>2    |    2 r 0</u>

<u>2    |    1 r 0</u>

<u>      |    0 r 1</u>

Reading upwards gives 1029 = 10000000101₂

(j) Determine the mantissa bits:

The mantissa is the rest of the number after the decimal of the base 2 scientific notation found in (f) above.

0010000010 from 1.0010000010 x 2⁶                  [<em>Just remove the leftmost 1 and the decimal point</em>]

(k) Combine the three parts: sign bit (1 bit), exponent bits (11 bits) and mantissa bits (52 bits)

sign bit = 1                [1 bit]

exponent bits = 10000000101    [11 bits]

mantissa bits = 0010000010        [10 out of 52 bits]

Then fill out the remaining part of the mantissa with zeros to make it 52 bits.

mantissa bits = 0010000010000000000000000000000000000000000000000000

Putting all together we have

1 10000000101 0010000010000000000000000000000000000000000000000000 as -72.125 in  a IEEE 754 double precision format.

You might be interested in
What are two software tools for bank account reconciliation?
AysviL [449]

Answer: cashbook and erp system

Explanation:

8 0
4 years ago
Read 2 more answers
A mail merge data source must contain
Katena32 [7]

Answer:

A. a collection of organized data.

Explanation:

It can be a data source, or a database, an excel sheet. or access database. However, it must be well-formatted and hence organized. filtering of data is not necessary, as well as it is not any barrier to the number of the set of data, or the data being sorted. Unsorted data is also fine, and multiple set of data is also fine. It must be known that a data source can be formed from multiple sets of data through the query. And the resultant data source can be used by the mail merge. However, the data source must be a collection of organized data. Hence, A is the correct answer.

5 0
4 years ago
Production cost can be reduced using technology. Explain
Black_prince [1.1K]

Explanation:

By reducing the time the use on unnecessary tasks. And you would be able to operate on using your time on beneficial tasks

3 0
3 years ago
Voice and fingerprint _______ can significantly improve the security of physical devices and provide stronger authentication for
zysi [14]

Answer:

biometrics

Explanation:

Voice and fingerprint <u>biometrics</u> can significantly improve the security of physical devices and provide stronger authentication for remote access or cloud services.

6 0
3 years ago
How do we add questions on sam Blockly?​
Blizzard [7]

Answer:

I do not know that answer

5 0
3 years ago
Other questions:
  • Describe Ms word environment.​
    14·1 answer
  • 1. Problem solving is
    13·1 answer
  • ____________ refers to the computer-to-computer transmission of business data in a structured format.
    15·1 answer
  • A _________________________ can use SOAP headers to carry meta information in its messages. A. Web service B. REST Service C. Co
    14·1 answer
  • A company wants to inform a select list of it's regular customers about a flash sale. Which type of platform will it use to send
    9·1 answer
  • All computer systems have
    14·2 answers
  • What is the value of 8n when n= = 2?​
    13·1 answer
  • What is HTML? (list down any 5 points)
    12·1 answer
  • You are reviewing the output of the show interfaces command for the Gi0/1 interface on a switch. You notice a significant number
    12·1 answer
  • Select the correct answer from the drop-down menu. Olivia composed a layout with the image below for a seasonal greeting card. W
    15·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!