emacs-devel
[Top][All Lists]
Advanced

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

Re: Unary /


From: Andreas Schwab
Subject: Re: Unary /
Date: Thu, 15 Oct 2015 14:09:52 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux)

David Kastrup <address@hidden> writes:

> I was surprised to discover that unary / does not work analogously to
> unary -, namely creating the multiplicative inverse.
>
> In Elisp, (/ 2.0) returns 2.0.  In Common Lisp
> <URL:http://www.lispworks.com/documentation/lw50/CLHS/Body/f_sl.htm>
> (and in Scheme), this returns 0.5.
>
> Any reason for that?  The Elisp behavior does not appear overly useful.

Probably because before Emacs supported floats this wasn't such a useful
operation.

Andreas.

-- 
Andreas Schwab, SUSE Labs, address@hidden
GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE  1748 E4D4 88E3 0EEA B9D7
"And now for something completely different."



reply via email to

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