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

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

Re: percent-change


From: Yuri Khan
Subject: Re: percent-change
Date: Sat, 13 May 2023 22:16:59 +0700

On Sat, 13 May 2023 at 19:41, Emanuel Berg <incal@dataswamp.org> 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)))



reply via email to

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