F.4 Floating to integer conversion

1

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.[1]

Footnotes