Is there a way to detect Infinity?

Ben Davis
Thu Jan 30 01:48:00 GMT 2003

> Earlier, on gcc2.95, I was using the finite() function call to detect
> infinity. But that does not work on gcc3.2.
> Has the function been relocated? Or what is the new call?

Make sure you're #including <math.h>, and try linking with -lm if you aren't 
already doing so. Otherwise I dunno.


More information about the Gcc-help mailing list