[LCP]Detecting overflow of floating point calculations
Vincent.Penquerch at artworks.co.uk
Tue Jun 25 23:35:06 UTC 2002
> I know that I know that if a floating point number is larger than the
> maximum value it can hold, the printf() family of functions will print
> "inf", at least with gcc, so printing to a string with
I don't know how portable they are (don't have my linux box
atm), but lookup finite and isnan (libc routines).
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the linuxCprogramming