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

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

Re: percent-change


From: Emanuel Berg
Subject: Re: percent-change
Date: Sat, 13 May 2023 17:58:48 +0200
User-agent: Gnus/5.13 (Gnus v5.13)

Yuri Khan wrote:

>> Take a look at this, see examples for intended bahvior.
>> This was more difficult than I imagined, maybe there is
>> some simpler way to do it?
>
>     (defun yk-percent-change (from to)
>       (if (= from to)
>           0
>         (/ (- to from) (abs from) 0.01)))

Digital!

-- 
underground experts united
https://dataswamp.org/~incal




reply via email to

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