Question

Can anyone help me with this please

1. If the floating-point number storage on a certain system has a sign bit, a 4-bit exponent and a 5-bit significand:


       i) What is the largest positive and the smallest positive number that can be stored on this system if the storage is normalized? (Assume no bits are implied, there is no biasing, exponents use two's complement notation, and exponents of all zeros and all ones are allowed.)


       ii) What bias should be used in the exponent if we prefer all exponents to be non-negative? Why would you choose this bias?

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

1)

Largest Positive

0.11112 * 24

= 0.9375*16

= 15

Largest positive is 15

Smallest Positive

0.12 x 2-5

= .0000012

= 1/64

= 0.015625

Smallest positive is 0.015625

2)

For a n bit exponent, the bias used is 2n-1 -1

Here n= 4

So the bias would be 24-1-1 = 23 -1 = 8-1=7

Thus the correct answer is 7.


answered by: gavin
Add a comment
Know the answer?
Add Answer to:
Can anyone help me with this please
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Similar Homework Help Questions
  • Assume the following representation for a floating point number 1 sign bit

     Assume the following representation for a floating point number 1 sign bit, 4 bits exponent, 5 bits for the significand, and a bias of 7 for the exponent (there is no implied 1 as in IEEE). a) What is the largest number (in binary) that can be stored? Estimate it in decimal. b) What is the smallest positive number( closest to 0 ) that can be stored in binary? Estimate it in decimal.c) Describe the steps for adding two floating point numbers. d)...

  • Problem 4 (10 points): 1. Consider the numbers 23.724 and 0.3344770219. Please normalize both 2. ...

    please help Problem 4 (10 points): 1. Consider the numbers 23.724 and 0.3344770219. Please normalize both 2. Calculate their sum by hand. 3. Convert to binary assuming each number is stored in a 16-bit register. Half-precision binary floating-point has: sign bit: lbit, exponent width: 5bits and a bias of 15, and significand 10 bits (16 bits total) 4. Show cach step of their binary addition, assuming you have one guard, one round, and one sticky bit, rounding to the nearest...

  • Consider a 9-bit floating-point representation based on the IEEE floating-point format, with one sign bit, four...

    Consider a 9-bit floating-point representation based on the IEEE floating-point format, with one sign bit, four exponent bits (k = 4), and four fraction bits (n = 4). The exponent bias is 24-1-1-7. The table that follows enumerates some of the values for this 9-bit floating-point representation. Fill in the blank table entries using the following directions: e : The value represented by considering the exponent field to be an unsigned integer (as a decimal value) E: The value of...

  • The answer below is correct, but can you guys show me how to get it? I...

    The answer below is correct, but can you guys show me how to get it? I need conplete solution. thanks Consider a 16-bit floating-point representation based on the IEEE floating-point format, with one sign bit, seven exponent bits (k=7), and eight fraction bits (n:8). The exponent bias is 27-1-1-63. Fill in the table that follows for each of the numbers given, with the following instructions for each column: Hex: the four hexadecimal digits describing the encoded form. M the value...

  • (30 pts) In addition to the default IEEE double-precision format (8 byte 64 bits) to store...

    (30 pts) In addition to the default IEEE double-precision format (8 byte 64 bits) to store floating-point numbers, MATLAB can also store the numbers in single-precision format (4 bytes, 32 bits). Each value is stored in 4 bytes with 1 bit for the sign, 23 bits for the mantissa, and 8 bits for the signed exponent: Sign Signed exponent Mantissa 23 bits L bit 8 bits Determine the smallest positive value (expressed in base-10 number) that can be represented using...

  • Floating Point Representation Consider a computer that stores information using 10 bits words. The first bit...

    Floating Point Representation Consider a computer that stores information using 10 bits words. The first bit is for the sign of the number, the next 5 for the sign and magnitude of the exponent and the last 4 for the magnitude of the mantissa. The mantissa is normalized as described in class and in the textbook. a. Convert 1 00010 1001 to a base-10 system b. What is the highest number that can be stored on this computer? c. What...

  • Question 5 The shortest IEEE standard for rep- expnt fraction resenting rational numbers is calle...

    PLEASE NOTE: PLEASE ANSWER IN MATHEMATICAL FORM!! THIS IS NOT ESSAY QUESTION. THANKS Question 5 The shortest IEEE standard for rep- expnt fraction resenting rational numbers is called half-precision float- sign (S bit) ing point. It uses a 16-bit word partitioned as in the I diagram at right. (This diagram is taken from the Wiki can be found.) (10 bit) article on the subject, where more details 15 10 As described in lectures, to store a rational number r it...

  • Only Answer Part D! Thanks Floating Point Representation Consider a computer that stores information using 10...

    Only Answer Part D! Thanks Floating Point Representation Consider a computer that stores information using 10 bits words. The first bit is for the sign of the number, the next 5 for the sign and magnitude of the exponent and the last 4 for the magnitude of the mantissa. The mantissa is normalized as described in class and in the textbook. a. Convert 1 00010 1001 to a base-10 system b. What is the highest number that can be stored...

  • 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...

  • 3. Create a MATLAB script or function that takes converts a 10-element array, B, of zeros...

    3. Create a MATLAB script or function that takes converts a 10-element array, B, of zeros and ones and converts it into a floating point number, F, using the following rules: 1. The leading bit indicates a positive (0) or negative (1) number ii. Bits 2 through 4 are the binary representation of e, the exponent Ill Bits 5 through 10 represent the number precision as: (sign).(1 + bit5.2-1 + bith. 2-2 + ... + bit10.2-6). 2-3 iv. Finally, if...

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