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: 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

Attachment: node.patch
Description: Text document


reply via email to

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