help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: Inconsistency: sometimes an integer, sometimes a float


From: djc
Subject: Re: Inconsistency: sometimes an integer, sometimes a float
Date: Fri, 24 Jan 2014 14:25:58 -0800 (PST)
User-agent: G2/1.0

> Instead, write:
>     (defun float/ (dividend divisor &rest divisors)
>       (apply (function /) (float dividend) divisor divisors))

That's indeed consistent, but wouldn't work for my purposes, since what I 
really want is the millions group as an integer.  (And later perhaps also the 
billions... groups.)  Problem simplified, solved and generalized in the actual 
code in question at a slight decrease in speed that has no consequences in the 
context of its use.

djc


reply via email to

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