Question

2020.pdf on: Print first a... Exercise 2: Solution... While Loops in Pyth... canvas The College of Sain... sic TC 5. What is

0 0
Add a comment Improve this question Transcribed image text
Answer #1

Number -142.1
Sign bit = 1
Binary equivalent of 142 = 10001110
Binary equivalent of 0.1 = 0.000110011001100110011
Therefore 142.1 in binary = 10001110.000110011001100110011
   ,in exponent form  = 1.0001110000110011001100110011 x 2^7

In single precision:
Number is written in 32 bits, where leftmost bit is the sign bit, next 8 bits from the left are exponent bits, next 23 bits are the normalised mantissa bits.

Biased Exponent: 127 + 7 = 134
134 in binary is: 10000110

Normalised mantisa = 00011100001100110011010 (as we require only 23 bits from the left and rounding the last decimal place)

Therefore;

-142.1 =

1 10000110 00011100001100110011010

This in hexadecimal form is: C30E199A

______________________________________________

Feel free to ask any questions in the comments section
Thank You!

Add a comment
Know the answer?
Add Answer to:
2020.pdf on: Print first a... Exercise 2: Solution... While Loops in Pyth... canvas The College of...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • 5) Converting to IEEE-754 Floating Point express in hex EEL 3801 UCF Consider 0x40100000 to represent...

    5) Converting to IEEE-754 Floating Point express in hex EEL 3801 UCF Consider 0x40100000 to represent a 32-bit floating-point number in IEEE754 single- precision format. What decimal value does it represent? Note: Only the non-fractional quantity “1” is noted in Yellow Font, in accordance with Syllabus page 11. It is required to show ALL incremental steps of the solution: including but not limited to fields, all bit values, bias, and so on.

  • can you multiply the yellow number by 9 then solve 5) Converting to IEEE-754 Floating Point...

    can you multiply the yellow number by 9 then solve 5) Converting to IEEE-754 Floating Point express in hex Consider 0x40100000 to represent a 32-bit floating-point number in IEEE754 single- precision format. What decimal value does it represent? Note: Only the non-fractional quantity "1" is noted in Yellow Font, in accordance with Syllabus page 11 It is required to show ALL incremental steps of the solution: including but not limited to fields, all bit values, bias, and so on.

  • Please give me First and second answer. If you don't mind please check my 3rd question...

    Please give me First and second answer. If you don't mind please check my 3rd question is this my question is right or wrong. Thanks Show how each of the following floating point values would be stored using IEEE-754 single precision (be sure to indicate the sign bit, the exponent, and the significand fields): (show your work) 12.5 −1.5 0.75 26.625 ______________________________________________________________________________ Show how each of the following floating point values would be stored using IEEE-754 double precision (be sure...

  • Practice Exam P7: a) (A+ (B+C)/D) -E b) (A+B* (C/D)) -E Support for complex arithmetic functionality...

    Practice Exam P7: a) (A+ (B+C)/D) -E b) (A+B* (C/D)) -E Support for complex arithmetic functionality Consider the following five floating point numbers, A = 1.0000 x 2- B - 1.0000 x 270 C- 1.0000 x 270 D = 1.0000 x 2100 E = 1.0000 x 240 cach is stored as a 32-bit single precision IEEE standard 75+ floating point number, and the compiled version of the a-e options below, as C code, will be run on an IEEE 754...

  • 2.4 Recall from class that MATLAB uses standard (IEEE) double-precision floating point notation: 52 bits 11...

    2.4 Recall from class that MATLAB uses standard (IEEE) double-precision floating point notation: 52 bits 11 bits where each bit b Any Number- +/- (1.bbb...bbb)2 x 2 (bbb..bb2 102310 represents the digit 0 or 1. That is, the mantissa is always assumed to start with a 1, with 52 bits afterwards, and the exponent is an eleven bit integer (from 000..001 to 111...110) biased by subtracting 1023 Well, in "my college days" the standard was single-precision floating point notation in...

  • Use the C programming language to complete #include <stdio.h> #include <stdlib.h> #include <float.h> // Declare Global...

    Use the C programming language to complete #include <stdio.h> #include <stdlib.h> #include <float.h> // Declare Global variables here. void array_stats() { // Insert your solution here. } #include <stdlib.h> #include <time.h> int main() { // Simulate the test setup process. srand( time( NULL ) ); for ( int i = 0; i < 32; i++ ) { val[i] = rand(); } val_count = rand(); val_mean = rand(); val_min = rand(); val_max = rand(); // Call submitted code. array_stats(); // Display...

  • You need not run Python programs on a computer in solving the following problems. Place your...

    You need not run Python programs on a computer in solving the following problems. Place your answers into separate "text" files using the names indicated on each problem. Please create your text files using the same text editor that you use for your .py files. Answer submitted in another file format such as .doc, .pages, .rtf, or.pdf will lose least one point per problem! [1] 3 points Use file math.txt What is the precise output from the following code? bar...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT