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

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

Re: gawk infinity issues


From: Paul Eggert
Subject: Re: gawk infinity issues
Date: Thu, 05 Jan 2006 14:53:33 -0800
User-agent: Gnus/5.1007 (Gnus v5.10.7) Emacs/21.4 (gnu/linux)

"Andrew J. Schorr" <address@hidden> writes:

> I'm not sure what the correct result should be

POSIX doesn't say what should happen with infinities or NaNs, so Awk
can do as it pleases.

The C99 Standard says that printf can print either "inf" or
"infinity"; it's implementation-defined.  Similarly, NaNs are printed
as either "nan" or "nan(n-char-sequence)".  In either case, "-" is
prepended if the sign bit is negative.

Presumably Awk should do the same as C99.  However, I don't think it's
a big deal if Awk does something different on old-fashioned hosts like
Solaris 8 that don't have proper C99 support.




reply via email to

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