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: Paul Eggert
Subject: Re: gawk number to string bug
Date: Wed, 21 Dec 2005 16:48:08 -0800
User-agent: Gnus/5.1007 (Gnus v5.10.7) Emacs/21.4 (gnu/linux)

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

> why not simply
> use snprintf("%.0f") to produce "%d"?

That thought occurred to me as well.  I think it would work.  You
might have to be careful about infinity, though: it's not an integer
but it compares equal to its floor.

Also, you'll need to size the output buffer correctly.

Care to write a patch?




reply via email to

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