If the floating value is infinite or NaN
or if the integral part of the floating value exceeds the range of the integer type,
then the ‘‘invalid’’ floating-point exception is raised
and the resulting value is unspecified.
Whether conversion of non-integer floating values
whose integral part is within the range of the integer type
raises the ‘‘inexact’’ floating-point exception is unspecified
referenced:
F.4 Floating to integer conversion ISO/IEC 9899:1999 (E)