GNU bug report logs - #941
In CVS Emacs, calc-eval gives multiplication higher precidence than division

Previous Next

Package: emacs;

Reported by: rms <at> gnu.org

Date: Tue, 9 Sep 2008 08:20:05 UTC

Severity: normal

Merged with 914, 915, 918, 920, 921, 923, 924, 928, 929, 930, 932, 933, 934, 937, 944

Done: Chong Yidong <cyd <at> stupidchicken.com>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 941 in the body.
You can then email your comments to 941 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>:
bug#941; Package emacs. Full text and rfc822 format available.

Acknowledgement sent to rms <at> gnu.org:
New bug report received and forwarded. Copy sent to Emacs Bugs <bug-gnu-emacs <at> gnu.org>. Full text and rfc822 format available.

Message #5 received at submit <at> emacsbugs.donarmstrong.com (full text, mbox):

From: "Richard M. Stallman" <rms <at> gnu.org>
To: merlyn <at> stonehenge.com (Randal L. Schwartz)
Cc: lennart.borgman <at> gmail.com, bug-gnu-emacs <at> gnu.org, emacs-devel <at> gnu.org,
        carsten.dominik <at> gmail.com
Subject: Re: In CVS Emacs,
	calc-eval gives multiplication higher  precidence  than division
Date: Tue, 09 Sep 2008 04:11:44 -0400
    There's no need to change the longstanding defaults, because it would break
    things.  You already have a knob you can tweak if you think that "2 a / 3 b"
    should multiply by b, rather than divide by it.  That's a personal choice.

    Frankly, I'd never touch that knob, because it looks to me like it should
    divide by b.

I agree completely -- in that case, it is natural for b to go in the
denominator.

The same is true for 1 / 2 * 1000: the meaning of 1/2000 is more
natural, mathematically.

What Calc does now is clearly correct.





Forcibly Merged 914 915 918 920 921 923 924 928 929 930 932 933 934 937 941 944. Request was from "Juanma Barranquero" <lekktu <at> gmail.com> to control <at> emacsbugs.donarmstrong.com. (Tue, 09 Sep 2008 14:50:08 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <don <at> donarmstrong.com> to internal_control <at> emacsbugs.donarmstrong.com. (Wed, 08 Oct 2008 14:24:03 GMT) Full text and rfc822 format available.

This bug report was last modified 16 years and 255 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.