Question

1. Suppose that we have a floating point real number structure shown as below 10 bits 22 bits exponent mantisa 1-1. Find the

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

# include<stdio.h>

int main()

{

double first number ,second number, product

Print f("Enter two numbers");

scanf ("%lf,%lf,&first number,&second number);

product=(first number*second number);

printf("product=% 64 lf",product);

return(0);

}

Add a comment
Know the answer?
Add Answer to:
1. Suppose that we have a floating point real number structure shown as below 10 bits 22 bits exp...
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
  • What is the minimum and maximum floating-point number stored in a 64-bit register assuming 1 bit as a sign-bit, 16 bits for exponent and rest of the bits for significant ?

    What is the minimum  and maximum floating-point number stored in a 64-bit register assuming 1 bit as a sign-bit,  16 bits for exponent and rest of the bits for significant ?

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

  • Assume a 10-bit floating point representation format where the Exponent Field has 4 bits

    Assume a 10-bit floating point representation format where the Exponent Field has 4 bits and the Fraction Field has 6 bits and the sign bit field uses 1 bit  S      Exponent Field: 4 bits       Fraction Fleld: 5 bits a) What is the representation of -8.80158 × 10-2 in this Format - assume bias =2M-1-1=24-1-1=7 (where N= number of exponent field bits) for normalized representation 1 -bias =-6 : for denormalized representationb) What is the range of representation for...

  • If we use the IEEE standard floating-point single-precision representation (1 sign bit, 8 bit exponent bits...

    If we use the IEEE standard floating-point single-precision representation (1 sign bit, 8 bit exponent bits using excess-127 representation, 23 significand bits with implied bit), then which of the following hexadecimal number is equal to the decimal value 3.875? C0780000 40007800 Oo 40780000 40A80010 The binary string 01001001110000 is a floating-point number expressed using a simplified 14-bit floating-point representation format (1 sign bit, 5 exponent bits using excess-15 representation, and 8 significand bits with no implied bit). What is its...

  • 1. Assume we are using the simple model for floating-point representation as given in this book...

    1. Assume we are using the simple model for floating-point representation as given in this book (the representation uses a 14-bit format, 5 bits for the exponent with a bias of 15, a normalized mantissa of 8 bits, and a single sign bit for the number): a) Show how the computer would represent the numbers 100.0 and 0.25 using this floating-point format. b) Show how the computer would add the two floating-point numbers in part a by changing one of...

  • answer please! WRITE YOUR ANSWERS IN THE PROVIDED SPACE. Below are the two standard floating-point formats....

    answer please! WRITE YOUR ANSWERS IN THE PROVIDED SPACE. Below are the two standard floating-point formats. - 32 bits SE Sign Odenotes I denotes - 23 hits o mai CRC22 exponent (a) Single precision III II-bence.2023 ponce (b) Double precision a) Represent -6.375 in double floating point format. b) What number is represented by the single precision floating point format: 1-10000000-0011000...00

  • 1. [20 marks) The following problems are about floating point sys- tem and floating point representation...

    1. [20 marks) The following problems are about floating point sys- tem and floating point representation of a real number. as follows: A toy floating point system is given (B, t, L, U)= (4, 3,-1, 3) (1). [5 marks] Determine the number of distinct positive numbers can be represented by the system; (2). [4 marks] Determine the largest positive number and the small- est positive number the system can be represented by the system and give their decimal values; (3)....

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

  • Exercise 1 (9 pts) We have seen that ARM has 16*32 bits registers (plus floating point...

    Exercise 1 (9 pts) We have seen that ARM has 16*32 bits registers (plus floating point registers) There is also a status register: CPSR. It contains, among other things, the following important status bits N Negative, set when the result of an arithmetic operation is negative (according to the two's complement encoding of the natural numbers . Z- Zero, set when the result of an operation is zero . C Carry, set when an operation results in a carry bit...

  • (Q2) Calculating the Distribution of Values 10 marks For a set of n real numbers {xi,...,...

    (Q2) Calculating the Distribution of Values 10 marks For a set of n real numbers {xi,..., x.J, here are a number of basic statistics we would like to know about the distribution of these numbers: ·The minimum value m = min(x 1, . .., Xn The maximum value Mmax{xi,..., x,J The average value a -^ 1x The standard deviation sx,-a)2. Write a program stats.c that calculates these values for a sequence of values it reads from stdin. The input is...

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