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: Eli Zaretskii
Subject: Re: [bug-gawk] Overflow to Infinity
Date: Mon, 16 Jul 2018 21:30:49 +0300

> From: address@hidden
> Date: Mon, 16 Jul 2018 12:17:50 -0600
> Cc: address@hidden, address@hidden,
>         address@hidden
> 
> Eli Zaretskii <address@hidden> wrote:
> 
> > Which Gawk results are nonsensical?  Maybe I missed some, but I looked
> > at most of them, and they do make sense, more than the C results,
> > actually.
> 
> nan >  2 -> true
> nan >= 2 -> true

Nothing wrong with those, IMO.

> -nan >  2 -> true
> -nan >= 2 -> true

I don't see these in my output (with Gawk 4.2.1).  I see

  nan <  2 -> false
  nan <= 2 -> false

which looks reasonable.

> nan >  inf -> true
> nan >= inf -> true

Nothing wrong with this, IMO.

> -nan >  inf -> true
> -nan >= inf -> true

Again, I don't see this.  I see this instead:

 nan <  -inf -> false
 nan <= -inf -> false

which is again reasonable.

> Do you wish to review the code and submit a suggested patch?

Do we agree about the principles?  I was rather under the impression
that we didn't, in which case submitting a patch would just waste
everybody's time.



reply via email to

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