bug-gawk
[Top][All Lists]
Advanced

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

Re: [bug-gawk] Overflow to Infinity


From: Arnold Robbins
Subject: Re: [bug-gawk] Overflow to Infinity
Date: Fri, 13 Jul 2018 14:03:26 +0300
User-agent: Heirloom mailx 12.5 6/20/10

Hello all.

> From: Arnold Robbins <address@hidden>
> Message-Id: <address@hidden>
> Date: Fri, 06 Jul 2018 10:28:57 +0300
> To: address@hidden, address@hidden
> Subject: Re: [bug-gawk] Overflow to Infinity
> Cc: address@hidden, address@hidden
>
> > Issue #2 is that gawk can print "inf", which means it can output stuff
> > that it can't read back later:
> >
> >     $ gawk 'BEGIN { print 2+2, -log(0) }'
> >     4 inf
> >
> > It is this latter issue that I am choosing to not deal with at the moment.
>
> I have finally dealt with it.  This is the patch I'd like to
> push shortly.
>
> Andy - if you have a few minutes, please review. I think it solves the
> output problem. (Grrrr. I forgot to update the doc. Darn!!!)
> (Double Grrrr. I need to deal with MPFR values for this case, too.)

I have pushed fixes that handle MPFR and include doc updates. It was
somewhat more involved than I expected.

I am working on changing comparison (==, !=, etc.) such that for NaN
and INF values gawk will behave like C.  I hope this will be done
within another week or so.  This will NOT affect array sorting, whereby
NaN values will continue to compare equal to each other.

Thanks,

Arnold



reply via email to

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