Complex sentence: In floating-point calculations, NaN is not the same as infinity, although both are typically handled as special cases in floating-point representations of real numbers as well as in floating-point operations.
Split into simpler sentences: In floating-point calculations, NaN is not the same as infinity. NaN and infinity are typically handled as special cases in floating-point representations of real numbers, as well as in floating-point operations.