とりあえず使っている環境が、
C99 floating point rounding and exception handling
をサポートしているかどうか調べたら?

FE_OVERFLOWとかfegetexceptflag()とかぐぐってみて。