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
Which of the following is true about main and secondary memory?
Deffense [45]

Answer:

Main memory is short term memory used by the CPU in processing commands, secondary memory is more permanent and used for storage.

Explanation:

Hey there so just a quick explanation here.

Main memory is not used for storage and secondary memory is not lost when the device's power is turned off.

That leaves you to two possibilities:

  • Main memory is more permanent and used for storage, secondary memory is short term memory is used by the CPU in processing commands.
  • Main memory is short term memory used by the CPU in processing commands, secondary memory is more permanent and used for storage.

The bolded bullet point is the correct answer because, main memory is what's know as RAM on your computer. It could either be 4GB, 8GB or maybe even 16GB of RAM. But this is known as Random Access Memory, this is data stored no on the hard drive but on the processor, only momentarily and used when the CPU needs it.

Secondary memory is your Hard Drive, typically 256GB, 500GB, or 1TB which is 1000GB's. But this data is stored on the Hard Drive or Solid State Drive (SSD) and it stays there even when the computer is shot off.

Kind of like our phones, we take pictures on a Friday night dancing with our friends, but our phone dies. Saturday morning we wake up and haha! We get to see all the funny pictures we took that night, so even though it shuts off, our data is saved and secured.

Hope this helps and Good luck !!

Happy Coding :)

8 0
3 years ago
Renee's creating a plan for her business's information system. What should she do after she determines the goals for her busines
stiks02 [169]

get organized because of the beging when she start she will want ot be nice and fresh on everything

7 0
4 years ago
Businesses around the world all need access to the same data, so there
Alexxx [7]

Answer:

B

Explanation:

3 0
2 years ago
Steve, an HR manager for IBM, must decide what positions the firm should fill in the next 6 months, which means Steve is current
Katyanochek1 [597]

Answer:

personnel planning

Explanation:

Steve, an HR manager for IBM, must decide what positions the firm should fill in the next 6 months, which means Steve is currently working on personnel planning.

4 0
3 years ago
Three reasons why users attach speakers to their computers.
ZanzabumX [31]

Answer:

Iv'e answered this question 2 times already lol. The purpose of speakers is to produce audio output that can be heard by the listener. Speakers are transducers that convert electromagnetic waves into sound waves. The speakers receive audio input from a device such as a computer or an audio receiver.

Explanation: I hope this helps!

8 0
3 years ago
Other questions:
  • Jesse is writing a physics quiz about the motion of a roller coaster cart. He has a clip art illustration of a cart rolling hori
    9·2 answers
  • A user has requested to have an extra 4GB of memory installed on a laptop. During the Installation process, which of the followi
    6·1 answer
  • • Write a program to find the maximum, minimum, and average score of players. The input to the program is a file containing play
    9·1 answer
  • 6) RAM, 5 main memory<br>which storage conbe used<br>as permanent storage<br>Rom<br>a) R<br>)​
    8·2 answers
  • 8.8 Lab: Swapping variables Write a program whose input is two integers and whose output is the two integers swapped. Ex: If the
    15·1 answer
  • Which of the following keys open the spelling and Grammer dialog box
    6·1 answer
  • If object B inherits from object A, then which of the following statements is true?
    15·1 answer
  • Which one of them are the correct answers?
    7·1 answer
  • One reason to move to a paperless society is that printers are becoming prohibitively expensive true or false
    13·2 answers
  • Select three areas that should be included in a contract consultant’s business expense model.
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!