Re: pi seems not to be a constant

Pascal Bourguignon <[email protected]>
Newsgroups gmane.lisp.clisp.general
Message-ID <[email protected]>
Yes they are not the same if you save them across long-float-digits changes. Neither eql or =.

Sent from my iPhone

> On 22 Oct 2015, at 16:36, <[email protected]> <[email protected]> wrote:
> 
> Hi,
> 
>> 1L0 is always 1L0, whatever the long-float-digits.
>> However not all 1L0's are the same.
>> (/ 1L0 3)
>> 0.33333333333333333334L0
>> (setf (ext:long-float-digits) 128)
>> (/ 1L0 3)
>> 0.333333333333333333333333333333333333334L0
> 
> It just occurred to me that one could, in theory, blame CLISP for
> not implementing *print-readably* correctly, since the output does
> not mention the number of long-float-digits, does it?
> 
> Looking closer upon the notion of "similarity" in CLHS
> http://www.lispworks.com/documentation/lw51/CLHS/Body/03_bdbb.htm
> it appears that what CLISP does is ok, isn't it?
> 
> "Two numbers S and C are similar if they are of the same type and represent the same mathematical value."
> 
> Or one argues that the above values are not the same?
> 
> Regards,
> Jörg Höhle
> ------------------------------------------------------------------------------
> _______________________________________________
> clisp-list mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/clisp-list

------------------------------------------------------------------------------
_______________________________________________
clisp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/clisp-list
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.