<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=windows-1252">
<META NAME="Generator" CONTENT="MS Exchange Server version 5.5.2448.0">
<TITLE>RE: [LCP]Detecting overflow of floating point calculations</TITLE>
</HEAD>
<BODY>

<P><FONT SIZE=2>&gt; I know that I know that if a floating point number is larger</FONT>
<BR><FONT SIZE=2>&gt; than the</FONT>
<BR><FONT SIZE=2>&gt; maximum value it can hold, the printf() family of functions</FONT>
<BR><FONT SIZE=2>&gt; will print</FONT>
<BR><FONT SIZE=2>&gt; &quot;inf&quot;, at least with gcc, so printing to a string with </FONT>
</P>

<P><FONT SIZE=2>I don't know how portable they are (don't have my linux box</FONT>
<BR><FONT SIZE=2>atm), but lookup finite and isnan (libc routines).</FONT>
</P>

<P><FONT SIZE=2>-- </FONT>
<BR><FONT SIZE=2>Vincent Penquerc'h </FONT>
</P>

</BODY>
</HTML>