From unknown Tue Jun 17 20:17:11 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#914 <914@debbugs.gnu.org> To: bug#914 <914@debbugs.gnu.org> Subject: Status: In CVS Emacs, calc-eval gives multiplication higher precedence than division Reply-To: bug#914 <914@debbugs.gnu.org> Date: Wed, 18 Jun 2025 03:17:11 +0000 retitle 914 In CVS Emacs, calc-eval gives multiplication higher precedence = than division reassign 914 emacs submitter 914 Francis Litterio severity 914 normal thanks From flitterio@gmail.com Sun Sep 7 09:14:15 2008 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-6.2 required=4.0 tests=AWL,BAYES_00, RCVD_IN_DNSWL_LOW autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at submit) by emacsbugs.donarmstrong.com; 7 Sep 2008 16:14:15 +0000 Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m87GECmx005571 for ; Sun, 7 Sep 2008 09:14:13 -0700 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KcMtw-0000GK-5S for bug-gnu-emacs@gnu.org; Sun, 07 Sep 2008 12:14:12 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KcMtu-0000Fs-Lg for bug-gnu-emacs@gnu.org; Sun, 07 Sep 2008 12:14:11 -0400 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 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 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 From: Francis Litterio To: bug-gnu-emacs@gnu.org, emacs-devel@gnu.org Subject: In CVS Emacs, calc-eval gives multiplication higher precidence than division Date: Sun, 07 Sep 2008 12:06:38 -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 Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (windows-nt) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-detected-kernel: by monty-python.gnu.org: Genre and OS details not recognized. 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 From cyd@stupidchicken.com Sun Sep 7 11:51:04 2008 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-4.8 required=4.0 tests=AWL,BAYES_00, VALID_BTS_CONTROL autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at control) by emacsbugs.donarmstrong.com; 7 Sep 2008 18:51:04 +0000 Received: from cyd.mit.edu (CYD.MIT.EDU [18.115.2.24]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m87Ip1iO028294 for ; Sun, 7 Sep 2008 11:51:02 -0700 Received: by cyd.mit.edu (Postfix, from userid 1000) id 60AD757E354; Sun, 7 Sep 2008 14:53:49 -0400 (EDT) From: Chong Yidong To: control@debbugs.gnu.org Subject: close bug reports Date: Sun, 07 Sep 2008 14:53:49 -0400 Message-ID: <873akb948y.fsf@cyd.mit.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii tags 330 moreinfo close 527 reassign 687 emacs,w32 reassign 716 emacs,w32 close 720 close 908 close 914 close 915 reassign 912 spam thanks From rgm@gnu.org Sun Sep 7 19:19:18 2008 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-8.4 required=4.0 tests=AWL,BAYES_00,MISSING_SUBJECT, NOSUBJECT,RCVD_IN_DNSWL_MED,X_DEBBUGS_NO_ACK autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at control) by emacsbugs.donarmstrong.com; 8 Sep 2008 02:19:18 +0000 Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m882JFrM022956 for ; Sun, 7 Sep 2008 19:19:17 -0700 Received: from rgm by fencepost.gnu.org with local (Exim 4.67) (envelope-from ) id 1KcWJn-0002IS-Jn; Sun, 07 Sep 2008 22:17:31 -0400 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <18628.35643.557320.67844@fencepost.gnu.org> Date: Sun, 7 Sep 2008 22:17:31 -0400 From: Glenn Morris To: control X-Attribution: GM X-Mailer: VM (www.wonderworks.com/vm), GNU Emacs (www.gnu.org/software/emacs) X-Hue: black X-Ran: ~U?tZ9#w)k6ZX X-Debbugs-No-Ack: yes forcemerge 914 915 918 920 921 923 924 From rgm@gnu.org Mon Sep 8 13:28:10 2008 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-8.4 required=4.0 tests=AWL,BAYES_00,MISSING_SUBJECT, NOSUBJECT,RCVD_IN_DNSWL_MED,X_DEBBUGS_NO_ACK autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at control) by emacsbugs.donarmstrong.com; 8 Sep 2008 20:28:10 +0000 Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m88KS7Yw021722 for ; Mon, 8 Sep 2008 13:28:08 -0700 Received: from rgm by fencepost.gnu.org with local (Exim 4.67) (envelope-from ) id 1KcnJU-0001Hq-TC; Mon, 08 Sep 2008 16:26:20 -0400 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <18629.35436.837734.98648@fencepost.gnu.org> Date: Mon, 8 Sep 2008 16:26:20 -0400 From: Glenn Morris To: control X-Attribution: GM X-Mailer: VM (www.wonderworks.com/vm), GNU Emacs (www.gnu.org/software/emacs) X-Hue: yellow X-Ran: c}IvT%;AnAHb1{rp6ts&HY4kM:e"?U?h75JSDU*[NLr,LD)AjJo(,m}k@agFN!vuvw?{]` X-Debbugs-No-Ack: yes forcemerge 914 928 929 930 From lennart.borgman@gmail.com Mon Sep 8 13:54:07 2008 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-5.5 required=4.0 tests=AWL,BAYES_00,GMAIL, RCVD_IN_DNSWL_LOW autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at 914) by emacsbugs.donarmstrong.com; 8 Sep 2008 20:54:08 +0000 Received: from ch-smtp02.sth.basefarm.net (ch-smtp02.sth.basefarm.net [80.76.149.213]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m88Ks4uN030319 for <914@emacsbugs.donarmstrong.com>; Mon, 8 Sep 2008 13:54:05 -0700 Received: from c83-254-151-87.bredband.comhem.se ([83.254.151.87]:64879 helo=[127.0.0.1]) by ch-smtp02.sth.basefarm.net with esmtp (Exim 4.68) (envelope-from ) id 1KcnkI-00053v-6j; Mon, 08 Sep 2008 22:54:02 +0200 Message-ID: <48C590E2.4040804@gmail.com> Date: Mon, 08 Sep 2008 22:53:54 +0200 From: "Lennart Borgman (gmail)" User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.9) Gecko/20071031 Thunderbird/2.0.0.9 Mnenhy/0.7.5.666 MIME-Version: 1.0 To: "Randal L. Schwartz" CC: Carsten Dominik , 914@debbugs.gnu.org, emacs-devel@gnu.org Subject: Re: In CVS Emacs, calc-eval gives multiplication higher precidence than division References: <878wu3j4k2.fsf@gmail.com> <86wshn3df0.fsf@blue.stonehenge.com> <7D0B0AA3-AED7-456B-AAAB-D72CABD19CFB@gmail.com> <48C58D7B.1060707@gmail.com> <86k5dmxtaz.fsf@blue.stonehenge.com> In-Reply-To: <86k5dmxtaz.fsf@blue.stonehenge.com> X-Enigmail-Version: 0.95.7 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Antivirus: avast! (VPS 080908-0, 2008-09-08), Outbound message X-Antivirus-Status: Clean X-Originating-IP: 83.254.151.87 X-ACL-Warn: Too high rate of unknown addresses received from you X-Scan-Result: No virus found in message 1KcnkI-00053v-6j. X-Scan-Signature: ch-smtp02.sth.basefarm.net 1KcnkI-00053v-6j 8487e211f44969c2f645b963fad941d4 Randal L. Schwartz wrote: >>>>>> "Lennart" == Lennart Borgman (gmail) writes: > > Lennart> Of course I can see that the behaviour you want saves you a lot of key > Lennart> strokes. My question is really about the default value. You can easily > Lennart> change that, of course. The question is really if you prefer the old > Lennart> default and in that case what arguments you want to present for that. > > 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. I think communication can be very difficult if you have too much personal choice in it. Math is about communication (for a special class of logical problems). The original bug report was about this (calc-eval "1 / 2 * 1000") Calc treats this as 1 / (2 * 1000) which is just plain wrong. I have never seen a mathematician treat it that way - though I have seen many pupils doing that. > Frankly, I'd never touch that knob, because it looks to me like it should > divide by b. And I think most mathemeticians would agree, and that's the > target for that part of Calc. Stop thinking computer science. Think > *math* notation. From rgm@gnu.org Mon Sep 8 13:50:45 2008 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-8.4 required=4.0 tests=AWL,BAYES_00,MISSING_SUBJECT, NOSUBJECT,RCVD_IN_DNSWL_MED,X_DEBBUGS_NO_ACK autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at control) by emacsbugs.donarmstrong.com; 8 Sep 2008 20:50:45 +0000 Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m88Kog7Z029949 for ; Mon, 8 Sep 2008 13:50:43 -0700 Received: from rgm by fencepost.gnu.org with local (Exim 4.67) (envelope-from ) id 1KcnfM-0002Lg-Me; Mon, 08 Sep 2008 16:48:56 -0400 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <18629.36792.586608.584219@fencepost.gnu.org> Date: Mon, 8 Sep 2008 16:48:56 -0400 From: Glenn Morris To: control X-Attribution: GM X-Mailer: VM (www.wonderworks.com/vm), GNU Emacs (www.gnu.org/software/emacs) X-Hue: red X-Ran: T^isY|:S+1b#ZMVoY*it2=GpbZZC~9U`VRgc:Eq49yL(-"IpL@k/%giKiuba?REhg(.Yi* X-Debbugs-No-Ack: yes forcemerge 914 932 933 stop please take bug-gnu-emacs out of the cc. :( From rgm@gnu.org Mon Sep 8 13:53:24 2008 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-6.8 required=4.0 tests=AWL,BAYES_00,MISSING_SUBJECT, NOSUBJECT,RCVD_IN_DNSWL_MED,UNRESOLVED_TEMPLATE,X_DEBBUGS_NO_ACK autolearn=no version=3.2.3-bugs.debian.org_2005_01_02 Received: (at control) by emacsbugs.donarmstrong.com; 8 Sep 2008 20:53:24 +0000 Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m88KrLvI030285 for ; Mon, 8 Sep 2008 13:53:22 -0700 Received: from rgm by fencepost.gnu.org with local (Exim 4.67) (envelope-from ) id 1Kcnhw-0002lw-FZ; Mon, 08 Sep 2008 16:51:36 -0400 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <18629.36952.422449.252674@fencepost.gnu.org> Date: Mon, 8 Sep 2008 16:51:36 -0400 From: Glenn Morris To: control X-Attribution: GM X-Mailer: VM (www.wonderworks.com/vm), GNU Emacs (www.gnu.org/software/emacs) X-Hue: black X-Ran: p"k7Pf/kjn3SyU{?N*.c4"x0I3nRokfYLO$9^Y(=g.6Agq9d0?GJq]lKJ,9fZP%XIGPvu= X-Debbugs-No-Ack: yes forcemerge 914 934 From rgm@gnu.org Mon Sep 8 15:22:15 2008 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-8.4 required=4.0 tests=AWL,BAYES_00,MISSING_SUBJECT, NOSUBJECT,RCVD_IN_DNSWL_MED,X_DEBBUGS_NO_ACK autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at control) by emacsbugs.donarmstrong.com; 8 Sep 2008 22:22:15 +0000 Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m88MMC9i029905 for ; Mon, 8 Sep 2008 15:22:13 -0700 Received: from rgm by fencepost.gnu.org with local (Exim 4.67) (envelope-from ) id 1Kcp5u-0006LW-Jc; Mon, 08 Sep 2008 18:20:26 -0400 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <18629.42282.417143.910278@fencepost.gnu.org> Date: Mon, 8 Sep 2008 18:20:26 -0400 From: Glenn Morris To: control X-Attribution: GM X-Mailer: VM (www.wonderworks.com/vm), GNU Emacs (www.gnu.org/software/emacs) X-Hue: green X-Ran: fNvn,:U^mRkQq_\C&M'8BM'%?Cm`=>A=QD(i-BC)}k@LmWKU`UT2Vty[JduHzqtCA>9W$i X-Debbugs-No-Ack: yes forcemerge 914 937 stop the bug report that would not die... From rgm@gnu.org Mon Sep 8 15:25:01 2008 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-8.4 required=4.0 tests=AWL,BAYES_00,MISSING_SUBJECT, NOSUBJECT,RCVD_IN_DNSWL_MED,X_DEBBUGS_NO_ACK autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at control) by emacsbugs.donarmstrong.com; 8 Sep 2008 22:25:01 +0000 Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m88MOw05030140 for ; Mon, 8 Sep 2008 15:24:59 -0700 Received: from rgm by fencepost.gnu.org with local (Exim 4.67) (envelope-from ) id 1Kcp8b-0006Zl-8r; Mon, 08 Sep 2008 18:23:13 -0400 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <18629.42449.236135.599981@fencepost.gnu.org> Date: Mon, 8 Sep 2008 18:23:13 -0400 From: Glenn Morris To: control X-Debbugs-No-Ack: yes retitle 914 In CVS Emacs, calc-eval gives multiplication higher precedence than division stop spelling. :) From lekktu@gmail.com Tue Sep 9 07:41:25 2008 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-2.1 required=4.0 tests=AWL,BAYES_00,MISSING_SUBJECT, NOSUBJECT autolearn=no version=3.2.3-bugs.debian.org_2005_01_02 Received: (at control) by emacsbugs.donarmstrong.com; 9 Sep 2008 14:41:26 +0000 Received: from mail-gx0-f19.google.com (mail-gx0-f19.google.com [209.85.217.19]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m89EfITS017384 for ; Tue, 9 Sep 2008 07:41:19 -0700 Received: by gxk12 with SMTP id 12so3900969gxk.1 for ; Tue, 09 Sep 2008 07:41:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:mime-version:content-type:content-transfer-encoding :content-disposition; bh=lSLyOfnVyoZJQu/bgjvyfJorcpQVLzq8BTuN9sXPOKc=; b=r+L+cBfkSYKVJf1g5mv3H9zDlI/2Vb44fQaMoBQad5PRH4lRrXCe0q013ejrp2WQqq ZD0F46kfNULC3Zs+8vnnI0BxbKiD0OYuApFnBcV4FTfe+16xfCwHLuO163uibgA0ytAR KcEE6AIdW3/uTZYP/6FZC/zn3uIcrg3sL3ypU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type :content-transfer-encoding:content-disposition; b=ldkoec3Z7Wf01SyVg0th+Jnh8p2msWdoVra48FLr/LOjNxYRwJFOordSnwqUmA65V8 owDTgIWkNvqhnMvIuThV3GtE8jmYKScdp2dSpG94Wpb68ET2R7Bv09qWlA64WAqLIxeF 2tBVGVrQTGre4QrDULGwe0jPocQ530UtFXOL8= Received: by 10.100.166.9 with SMTP id o9mr17408754ane.64.1220971272999; Tue, 09 Sep 2008 07:41:12 -0700 (PDT) Received: by 10.100.13.13 with HTTP; Tue, 9 Sep 2008 07:41:12 -0700 (PDT) Message-ID: Date: Tue, 9 Sep 2008 16:41:12 +0200 From: "Juanma Barranquero" To: control@debbugs.gnu.org Subject: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline merge 894 945 forcemerge 914 941 944 quit From unknown Tue Jun 17 20:17:11 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: $requester Subject: Internal Control Message-Id: bug archived. Date: Wed, 08 Oct 2008 14:24:03 +0000 User-Agent: Fakemail v42.6.9 # A New Hope # A log time ago, in a galaxy far, far away # something happened. # # Magically this resulted in the following # action being taken, but this fake control # message doesn't tell you why it happened # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator