chicken-hackers
[Top][All Lists]
Advanced

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

Re: [Chicken-hackers] [PATCH] Distinguish between positive and negative


From: Evan Hanson
Subject: Re: [Chicken-hackers] [PATCH] Distinguish between positive and negative zero in flonums
Date: Sun, 28 Jul 2019 17:06:27 +1200

Thanks Peter, applied.

On Sat, Jun 29, 2019 at 03:26:54PM +0200, Peter Bex wrote:
> I'm not happy with the hacky way the reader deals with these, but I could
> not really come up with a clean solution for it.  Suggestions for
> improvement are welcome.

I experimented a bit with splitting the "go negative" logic from the "go
inexact" logic to perhaps make things more clear and avoid passing a
boolean around, but it didn't really help.

One thing I noticed is that now (signum -0.0) => -0.0. Does that seem
right? If so, it may be worth documenting that it's both exactness and
sign-preserving.

Evan



reply via email to

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