[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: GCL Version_2_6_13pre125
From: |
Camm Maguire |
Subject: |
Re: GCL Version_2_6_13pre125 |
Date: |
Thu, 10 Nov 2022 09:06:00 -0500 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) |
Greetings, and thanks for the feedback! Indeed, we just forward the C
code result here. The '-' sign has recently appeared in newer gcc.
Unlike the case with negative zero, which does denote a lisp number,
+-inf/nan have no lisp counterpart, so it seems best just to follow ieee
here. Compliant lisp code should not depend on the printed
representation, as far as I understand. This is why we only print these
when the special variable si::*print-nans* is set to non-nil.
Take care,
James Cloos <cloos@jhcloos.com> writes:
>>>>>> "RD" == Robert Dodier <robert.dodier@gmail.com> writes:
>
>>> >(setq b (- a) c (- a a))
>>> #<-nan>
>
> RD> Minor wart here -- should be #<nan>, NaN doesn't have a sign.
>
> they do at the hw level (per ieee754).
>
> other langs support signed nans. i presume gcl must be passing thru
> what the c code returns.
>
> -JimC
--
Camm Maguire camm@maguirefamily.org
==========================================================================
"The earth is but one country, and mankind its citizens." -- Baha'u'llah
- GCL Version_2_6_13pre125, Camm Maguire, 2022/11/08
- Message not available
- Message not available
- Windows [ was Re: [Maxima-discuss] GCL Version_2_6_13pre125 ], Camm Maguire, 2022/11/21
- Re: Windows [ was Re: [Maxima-discuss] GCL Version_2_6_13pre125 ], Raymond Toy, 2022/11/21
- Message not available
- Re: [Maxima-discuss] Windows [ was Re: GCL Version_2_6_13pre125 ], Camm Maguire, 2022/11/22
- Re: [Maxima-discuss] Windows [ was Re: GCL Version_2_6_13pre125 ], Robert Dodier, 2022/11/23
- Message not available
- Re: [Maxima-discuss] Windows [ was Re: GCL Version_2_6_13pre125 ], Camm Maguire, 2022/11/24