[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: gawk number to string bug

From: Andrew J. Schorr
Subject: Re: gawk number to string bug
Date: Wed, 28 Dec 2005 14:30:07 -0500
User-agent: Mutt/1.4.1i

On Wed, Dec 28, 2005 at 09:09:21PM +0200, Eli Zaretskii wrote:
> Try
>       if (x != x)
>       {
>         /* this is not a finite number */
>       }
> (You need to make sure the compiler doesn't optimize away this
> condition.)

In my testing, that works fine for NaN, but it does not catch Inf.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]