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: Peter Bex
Subject: Re: [Chicken-hackers] [PATCH] Distinguish between positive and negative zero in flonums
Date: Mon, 29 Jul 2019 11:43:57 +0200
User-agent: Mutt/1.10.1 (2018-07-13)

On Sun, Jul 28, 2019 at 05:06:27PM +1200, Evan Hanson wrote:
> 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.

It's probably correct.  SBCL does the same:

* (signum 0.0)
0.0
* (signum -0.0)
-0.0

Cheers,
Peter

Attachment: signature.asc
Description: PGP signature


reply via email to

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