From: Michael Heerdegen via "Bug reports for GNU Emacs, the Swiss army knife of text editors" <bug-gnu-emacs@gnu.org>
To: Eli Zaretskii <eliz@gnu.org>
Cc: 74760@debbugs.gnu.org, Ting Boon Ghee <tingbg@gmail.com>
Subject: bug#74760: 29.4; Calc : calcFunc-rate does not produce negative results
Date: Tue, 10 Dec 2024 17:00:08 +0100 [thread overview]
Message-ID: <8734ivtto7.fsf@web.de> (raw)
In-Reply-To: <86pllzbrkv.fsf@gnu.org> (Eli Zaretskii's message of "Tue, 10 Dec 2024 15:22:40 +0200")
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.
next prev parent reply other threads:[~2024-12-10 16:00 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-12-09 16:44 bug#74760: 29.4; Calc : calcFunc-rate does not produce negative results Ting Boon Ghee
2024-12-10 13:22 ` Eli Zaretskii
2024-12-10 13:44 ` Ship Mints
2024-12-10 16:00 ` Michael Heerdegen via Bug reports for GNU Emacs, the Swiss army knife of text editors [this message]
2024-12-10 15:52 ` Michael Heerdegen via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-12-10 16:14 ` Manuel Giraud via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-12-10 17:25 ` Michael Heerdegen via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-12-10 18:40 ` Ting Boon Ghee
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=8734ivtto7.fsf@web.de \
--to=bug-gnu-emacs@gnu.org \
--cc=74760@debbugs.gnu.org \
--cc=eliz@gnu.org \
--cc=michael_heerdegen@web.de \
--cc=tingbg@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).