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: In CVS Emacs, calc-eval gives multiplication higher precidence than division Date: Sun, 07 Sep 2008 12:06:38 -0400 Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1220804065 12954 80.91.229.12 (7 Sep 2008 16:14:25 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 7 Sep 2008 16:14:25 +0000 (UTC) To: bug-gnu-emacs@gnu.org, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Sep 07 18:15:21 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 1KcMv2-0002s0-2C for ged-emacs-devel@m.gmane.org; Sun, 07 Sep 2008 18:15:20 +0200 Original-Received: from localhost ([127.0.0.1]:55392 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KcMu2-0000Gl-3Y for ged-emacs-devel@m.gmane.org; Sun, 07 Sep 2008 12:14:18 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KcMtx-0000Gd-50 for emacs-devel@gnu.org; Sun, 07 Sep 2008 12:14:13 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KcMtw-0000GQ-EI for emacs-devel@gnu.org; Sun, 07 Sep 2008 12:14:12 -0400 Original-Received: from [199.232.76.173] (port=36414 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KcMtu-0000Fp-Cj; Sun, 07 Sep 2008 12:14:10 -0400 Original-Received: from pcls5.std.com ([192.74.137.145]:38089 helo=TheWorld.com) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KcMtu-0008I6-Hr; Sun, 07 Sep 2008 12:14:10 -0400 Original-Received: from usenlittefl1c.theworld.com (IDENT:105@shell01.theworld.com [192.74.137.71]) by TheWorld.com (8.13.6/8.13.6) with ESMTP id m87GDPMQ030735; Sun, 7 Sep 2008 12:13:29 -0400 X-Random-Quote: With or without religion, you would have good people doing good things and evil people doing evil things. But for good people to do evil things, that takes religion. -- Steven Weinberg User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (windows-nt) X-detected-kernel: by monty-python.gnu.org: Genre and OS details not recognized. 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:103631 gmane.emacs.bugs:20285 Archived-At: In CVS Emacs, function calc-eval (in lisp/calc/calc.el) gives multiplication higher precidence than division. To reproduce, run "emacs -q" and evaluate this form: (progn (require 'calc) (calc-eval "1 / 2 * 1000")) The value of the above form is "5e-4" (as if operator '*' has higher precidence than operator '/'), but it should be "500". -- Fran