From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Francis Litterio Newsgroups: gmane.emacs.devel,gmane.emacs.bugs Subject: Re: In CVS Emacs, calc-eval gives multiplication higher precidence than division Date: Sun, 07 Sep 2008 14:15:35 -0400 Message-ID: References: <878wu3j4k2.fsf@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1220811561 2447 80.91.229.12 (7 Sep 2008 18:19:21 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 7 Sep 2008 18:19:21 +0000 (UTC) Cc: bug-gnu-emacs@gnu.org To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Sep 07 20:20:17 2008 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1KcOro-0008LB-7a for ged-emacs-devel@m.gmane.org; Sun, 07 Sep 2008 20:20:08 +0200 Original-Received: from localhost ([127.0.0.1]:35205 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KcOqo-00032k-3P for ged-emacs-devel@m.gmane.org; Sun, 07 Sep 2008 14:19:06 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KcOqj-00031v-5s for emacs-devel@gnu.org; Sun, 07 Sep 2008 14:19:01 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KcOqh-00030e-NS for emacs-devel@gnu.org; Sun, 07 Sep 2008 14:19:00 -0400 Original-Received: from [199.232.76.173] (port=58468 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KcOqh-00030Y-Ff for emacs-devel@gnu.org; Sun, 07 Sep 2008 14:18:59 -0400 Original-Received: from main.gmane.org ([80.91.229.2]:49927 helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KcOqh-0000dK-7I for emacs-devel@gnu.org; Sun, 07 Sep 2008 14:18:59 -0400 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1KcOqa-00061y-KU for emacs-devel@gnu.org; Sun, 07 Sep 2008 18:18:52 +0000 Original-Received: from node153.194.100.208.1dial.com ([208.100.194.153]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 07 Sep 2008 18:18:52 +0000 Original-Received: from flitterio by node153.194.100.208.1dial.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 07 Sep 2008 18:18:52 +0000 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 28 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: node153.194.100.208.1dial.com X-Draft-From: ("nntp+news.gmane.org:gmane.emacs.devel" 103632) X-Random-Quote: I'm a great believer in luck, and I find the harder I work the more I have of it. -- Thomas Jefferson User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (windows-nt) Cancel-Lock: sha1:YTCfwnvj5cYNTUtF4y5ViCYT0hY= X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:103636 gmane.emacs.bugs:20296 Archived-At: 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