bug-gnu-utils
[Top][All Lists]
Advanced

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

Re: gawk number to string bug


From: Eli Zaretskii
Subject: Re: gawk number to string bug
Date: Wed, 28 Dec 2005 21:09:21 +0200

> Date: Wed, 28 Dec 2005 11:17:41 -0500
> From: "Andrew J. Schorr" <address@hidden>
> Cc: address@hidden, Aharon Robbins <address@hidden>,
>       address@hidden, address@hidden
> 
> Is there some other simple test that will catch only NaN and Inf?

Try

        if (x != x)
        {
          /* this is not a finite number */
        }

(You need to make sure the compiler doesn't optimize away this
condition.)




reply via email to

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