man feenableexcept
C99 floating point rounding and exception handling