Re: pi seems not to be a constant

<[email protected]>
Newsgroups gmane.lisp.clisp.general
Message-ID <4779FE7B0FF61A4998104E492AD7D6BC0111E04FFC7E@HE110882.EMEA1.CDS.T-INTERNAL.COM>
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
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.