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

From: Michael Heerdegen <[email-masked]>
Date: Tue, 10 Dec 2024 17:00:08 +0100

Eli Zaretskii <[email-masked]> 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.