[LCP]Detecting overflow of floating point calculations
Vincent Penquerc'h
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).
--
Vincent Penquerc'h
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.linux.org.au/pipermail/linuxcprogramming/attachments/20020625/35bd7602/attachment.htm
More information about the linuxCprogramming
mailing list