[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#918: In CVS Emacs, calc-eval gives multiplication higher precidence
From: |
Francis Litterio |
Subject: |
bug#918: In CVS Emacs, calc-eval gives multiplication higher precidence than division |
Date: |
Sun, 07 Sep 2008 14:15:35 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (windows-nt) |
Jay Belanger wrote:
> Francis Litterio writes:
> ...
>> In CVS Emacs, function calc-eval (in lisp/calc/calc.el) gives
>> multiplication higher precidence than division.
>
> That's not a bug. While many systems give division a higher precendence
> than multiplication, that isn't a universal rule. Calc has always given
> multiplication a higher precendence, and something like
> 1 / 2 * 1000
> can be viewed as shorthand for
> 1
> --------
> 2 * 1000
> Some people don't like this, some people do, but this choice is
> established Calc behavior and is highlighted in the manual. To divide
> first, it's probably better style regardless to put in the parentheses:
> (1 / 2) * 1000
Thanks, Jay.
My apologies for rehashing old news. I just discovered the discussion
thread at:
http://thread.gmane.org/gmane.emacs.devel/69436
--
Fran
- bug#914: In CVS Emacs, calc-eval gives multiplication higher precidence than division, Francis Litterio, 2008/09/07
- bug#915: In CVS Emacs, calc-eval gives multiplication higher precidence than division, Jay Belanger, 2008/09/07
- bug#918: In CVS Emacs, calc-eval gives multiplication higher precidence than division,
Francis Litterio <=
- bug#920: In CVS Emacs, calc-eval gives multiplication higher precidence than division, Stefan Monnier, 2008/09/07
- bug#920: In CVS Emacs, calc-eval gives multiplication higher precidence than division, Lennart Borgman (gmail), 2008/09/07
- bug#921: In CVS Emacs, calc-eval gives multiplication higher precidence than division, Jay Belanger, 2008/09/07
- bug#923: In CVS Emacs, calc-eval gives multiplication higher precidence than division, Stefan Monnier, 2008/09/07
- bug#924: In CVS Emacs, calc-eval gives multiplication higher precidence than division, Lennart Borgman (gmail), 2008/09/07
- Message not available
- bug#928: In CVS Emacs, calc-eval gives multiplication higher precidence than division, Carsten Dominik, 2008/09/08
- bug#929: In CVS Emacs, calc-eval gives multiplication higher precidence than division, Lennart Borgman, 2008/09/08
- bug#932: In CVS Emacs, calc-eval gives multiplication higher precidence than division, Carsten Dominik, 2008/09/08
- bug#933: In CVS Emacs, calc-eval gives multiplication higher precidence than division, Lennart Borgman (gmail), 2008/09/08
- bug#934: In CVS Emacs, calc-eval gives multiplication higher precidence than division, Randal L. Schwartz, 2008/09/08