[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: |
Mon, 19 Dec 2005 09:48:33 -0500 |
User-agent: |
Mutt/1.4.1i |
On Mon, Dec 19, 2005 at 05:39:25AM +0200, Aharon Robbins wrote:
> Thanks for the bug report. I was able to reproduce it on a 64-bit RHEL system.
>
> The patch below fixes the problem. I may ultimately fix it differently; on
> the test program I get different behaviors from the Bell Labs awk and from
> mawk, so I haven't 100% decided how I want gawk to behave.
Perhaps I'm missing something subtle, but why wouldn't something
as simple as the attached patch do the trick (i.e. simply convert
the floating point value to a long, then convert that value back
to floating-point, and see whether it matches the original value)?
Regards,
Andy
node.patch
Description: Text document
- gawk number to string bug, David Ellsworth, 2005/12/15
- Re: gawk number to string bug, Aharon Robbins, 2005/12/18
- Re: gawk number to string bug,
Andrew J. Schorr <=
- Re: gawk number to string bug, Eli Zaretskii, 2005/12/19
- Re: gawk number to string bug, Andrew J. Schorr, 2005/12/19
- Re: gawk number to string bug, Eli Zaretskii, 2005/12/19
- Re: gawk number to string bug, Paul Eggert, 2005/12/19
- Re: gawk number to string bug, John Cowan, 2005/12/19
Re: gawk number to string bug, David Ellsworth, 2005/12/19