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

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

bug#74760: 29.4; Calc : calcFunc-rate does not produce negative results


From: Michael Heerdegen
Subject: bug#74760: 29.4; Calc : calcFunc-rate does not produce negative results
Date: Tue, 10 Dec 2024 17:00:08 +0100
User-agent: Gnus/5.13 (Gnus v5.13)

Eli Zaretskii <eliz@gnu.org> writes:

> Isn't it true that in the financial world there are no negative rates,
> only positive rates written in red color?  Maybe this explains what
> you see?

It's probably not related but: this part of `calc-fin-rate' is clearly
suspicious:

      (calc-to-percentage
       (calc-normalize
        (cons (if (calc-is-hyperbolic) 'calcFunc-ratel
                (if (calc-is-hyperbolic) 'calcFunc-rateb ;; !@?!
                  'calcFunc-rate))
              (calc-top-list-n n))))

Looks like one of those two identical `calc-is-hyperbolic' tests
must be replaced with `calc-is-inverse' (the second one?).


Michael.





reply via email to

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