emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Code for converting between Elisp and Calc floats


From: Chong Yidong
Subject: Re: Code for converting between Elisp and Calc floats
Date: Sun, 25 Oct 2009 10:11:16 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (gnu/linux)

Vincent Belaïche <address@hidden> writes:

> When you use Calc as a library, then you would like it to interact more easily
> with some other piece of code, or simply to write the code more simply when 
> the
> precision you need is only that of a 64bit float: nobody will deny that it is
> simpler to write:
>
> 0.5
>
> instead of
>
> '(float 5 -1)

Could you discuss why this needs built-in support?  It should be
possible to write a Lisp function or macro that automatically converts
Lisp expressions based on Lisp floats into Lisp expressions based on
calc floats.




reply via email to

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