1.

If E=255 and M≠0, then which of the following statement is true about X?(a) Not a number(b) Infinity(c) Defined(d) ZeroThe question was asked during an online interview.The origin of the question is Representation of Numbers in section Discrete Time Systems Implementation of Digital Signal Processing

Answer»

The correct answer is (a) Not a number

To elaborate: According to the IEEE 754 standard, for a 32-bit machine, SINGLE PRECISION FLOATING point number is represented as X=(-1)^s.2^E-127(M).

From the above equation we can interpret that,

If E=255 and M≠0, then X is not a number.



Discussion

No Comment Found

Related InterviewSolutions