|
From: | John Cowan |
Subject: | Re: [Chicken-hackers] [PATCH] Distinguish between positive and negative zero in flonums |
Date: | Sun, 28 Jul 2019 09:42:37 -0400 |
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
_______________________________________________
Chicken-hackers mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/chicken-hackers
[Prev in Thread] | Current Thread | [Next in Thread] |