epresentation of infinity and NaN (Not a Number) in floating-point

부동소수점에서 무한대와 NAN 표시 방법

  • exponent가 전부 0/1 일때를 Special Case라고 생각하면 될 듯합니다.

    inf는 Exponent가 전부 1이고 Mantissa == 0

    NaN은 Exponent가 전부 1이고 Mantissa ≠ 0

Last updated