Re: pi seems not to be a constant
Raymond Toy <[email protected]>
| Newsgroups | gmane.lisp.clisp.general |
|---|---|
| Message-ID | <[email protected]> |
>>>>> "Don" == Don Cohen <[email protected]> writes: Don> It seems the best solution to this problem would be to Don> add to clisp the typespec (long-float precision) which would be a >> I think that's not a valid float specifier. Don> Actually I now notice that (long-float 64) already is used to mean Don> long floats >=64 How did you come to that conclusion? Float specifiers must look like (float-type low high) where low and high must be of the type float-type, so (long-float 64) isn't valid. Even if it were, it would mean all long-floats whose value is greater than or equal to 64. >> Is it conforming that cl:pi be a function? Don> I admit I've not paid enough attention to what things the Don> implementation is allowed to add to the standard. Don> If not cl:pi then perhaps ext:pi or some other name >> And sorry to be pessimistic, but unless a maintainer steps up nothing >> is going to happen. Don> I recognize all that. Don> Someone does occasionally volunteer for this sort of duty. Don> The next person who works on MT or the next person who wants to really Don> make use of variable precision floats might want to do this. Don> Someone who wants to add variable precision to some other system might Don> also find this discussion useful. Cmucl has double-double, in addition to long-float (which is implemented as double), so cl:pi is a simple long-float. ext:dd-pi is the double-double value of pi. -- Ray ------------------------------------------------------------------------------ _______________________________________________ clisp-list mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/clisp-list