Not a Number (NaN)
问题 Why some numbers are defined as not a number(NaN) in floating point arithmetic? (Although they can be represented by IEEE format and indeed are real numbers) 回答1: The author of the question also posted this comment: I don't understand how numbers for which "all exponent bits are 1's and mantissa is not all zeros" is not a real number. The reasoning behind this comment appears to be: A binary floating-point format has a sign bit s , some exponent bits e , and some significand bits f . For most