Question Answer Pts double x; Assuming that x>0, can we claim that in all cases
ID: 3753127 • Letter: Q
Question
Question Answer Pts double x; Assuming that x>0, can we claim that in all cases 1. + x > 1. ? Yes or no? Explain your answer. What is the precision numbers? Show the definition and a formula. of real What is the range of real numbers? Show the definition and a formula. double x; Explain the binary format of x and compute the precision and the range of x int N1 Write the contents of location N as binary and hexadecimal number assuming that your machine uses 32 bits for integers. octalExplanation / Answer
Yes, Since X> 0and adding anything greater than 0 to 1 will always be greater than 1. The precision of real number depend on floating point. floating-point number occupies 32-bits. floating-point number occupies 64-bits S × M × 2E Single-Precision floating-point number ± 10-38 ... 1038 double-floating-point number ± 10-308 ... 10308 Single Precision: mantissa ===> 1 bit + 23 bits. Double Precision: mantissa ===> 1 bit + 52 bits