From: Lars Ingebrigtsen <larsi@gnus.org>
To: eythanweg@gmail.com (Eythan Weg)
Cc: "Andreas Schwab" <schwab@suse.de>,
27765@debbugs.gnu.org, "Mattias Engdegård" <mattiase@acm.org>
Subject: bug#27765: 26.0.50; Calc b% and relch are inconsistent in algebraic and rpn modes
Date: Fri, 03 Sep 2021 10:12:17 +0200 [thread overview]
Message-ID: <87y28e13j2.fsf@gnus.org> (raw)
In-Reply-To: <87k234nw8w.fsf@gmail.com> (Eythan Weg's message of "Wed, 19 Jul 2017 13:59:27 -0400")
eythanweg@gmail.com (Eythan Weg) writes:
> >> Agreed. However, the displays are different. Won’t expect b% and relch
> >> behaves exactly the same?
>
> >That's called convenience, probably.
>
> A little more than that. E.g. the org-mode speadsheet uses calc.
> Summing cells which display percentages like 10% and 90%, one expects
> the result to be 100% rather than 1. Here the uniform display of
> percentages is significant, I would say.
>
> Curiosity lead me to check the same operation on libreoffice and gnumeric.
> They both adhere to the expected.
As far as I can tell, relch isn't documented to display the percentage
in one format or another (i.e., "50%" or "0.5"), while `b %' is
documented to do "50%".
I don't use calc much, but I think the current behaviour makes sense --
a function like relch might be supposed to use the format "0.5" since
that's what more math-ey types are used to seeing relative change
represented as.
But perhaps others have other opinions; I've added Mattias to the CCs --
perhaps he has some comments.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
next prev parent reply other threads:[~2021-09-03 8:12 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-07-19 12:37 bug#27765: 26.0.50; Calc b% and relch are inconsistent in algebraic and rpn modes Eythan Weg
2017-07-19 12:54 ` Andreas Schwab
2017-07-19 13:49 ` Eythan Weg
2017-07-19 14:10 ` Andreas Schwab
2017-07-19 17:59 ` Eythan Weg
2021-09-03 8:12 ` Lars Ingebrigtsen [this message]
2021-09-03 9:22 ` Mattias Engdegård
2021-09-03 14:56 ` Lars Ingebrigtsen
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=87y28e13j2.fsf@gnus.org \
--to=larsi@gnus.org \
--cc=27765@debbugs.gnu.org \
--cc=eythanweg@gmail.com \
--cc=mattiase@acm.org \
--cc=schwab@suse.de \
/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).