From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Jay Belanger Newsgroups: gmane.emacs.devel Subject: Re: Calc: `*' binds more strongly than `/' Date: Wed, 20 Jun 2007 15:18:39 -0500 Message-ID: <87y7ies7kw.fsf@gmail.com> References: <87y7kvxj6p.fsf@arcor.de> <87odlrkn74.fsf@truman.edu> <87tzvhcul9.fsf@stupidchicken.com> <863b2z2mma.fsf@blue.stonehenge.com> <55350.128.165.123.18.1176926533.squirrel@webmail.lanl.gov> <86ps5zuwmi.fsf@blue.stonehenge.com> <87ps5zi1h2.fsf@truman.edu> <87abuu8xaz.fsf@gmail.com> <877ipy8vhd.fsf@kfs-lx.testafd.dk> <200706201729.l5KHTG24023360@jane.dms.auburn.edu> <87fy4mzf3z.fsf@gmail.com> <200706201928.l5KJSjA7025362@jane.dms.auburn.edu> Reply-To: jay.p.belanger@gmail.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1182370731 28529 80.91.229.12 (20 Jun 2007 20:18:51 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 20 Jun 2007 20:18:51 +0000 (UTC) Cc: jay.p.belanger@gmail.com To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Jun 20 22:18:49 2007 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 1I16dc-0003pw-Os for ged-emacs-devel@m.gmane.org; Wed, 20 Jun 2007 22:18:49 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1I16db-0007EO-Qe for ged-emacs-devel@m.gmane.org; Wed, 20 Jun 2007 16:18:47 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1I16dY-0007EI-R4 for emacs-devel@gnu.org; Wed, 20 Jun 2007 16:18:44 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1I16dW-0007E6-FJ for emacs-devel@gnu.org; Wed, 20 Jun 2007 16:18:43 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1I16dW-0007E3-9r for emacs-devel@gnu.org; Wed, 20 Jun 2007 16:18:42 -0400 Original-Received: from uranium.truman.edu ([150.243.160.94]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1I16dV-0002FG-V2 for emacs-devel@gnu.org; Wed, 20 Jun 2007 16:18:42 -0400 Original-Received: from uranium.truman.edu (localhost.localdomain [127.0.0.1]) by localhost (Postfix) with SMTP id B57625FEFE; Wed, 20 Jun 2007 15:18:40 -0500 (CDT) Original-Received: from localhost.localdomain (vh215402.truman.edu [150.243.64.20]) by uranium.truman.edu (Postfix) with ESMTP id 8DEBF5F369; Wed, 20 Jun 2007 15:18:39 -0500 (CDT) In-Reply-To: <200706201928.l5KJSjA7025362@jane.dms.auburn.edu> (Luc Teirlinck's message of "Wed\, 20 Jun 2007 14\:28\:45 -0500 \(CDT\)") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1.50 (gnu/linux) X-detected-kernel: 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:73471 Archived-At: Luc Teirlinck writes: ... > if you give * higher precedence than /, as Calc did up to know > and still does by default now (unless I misunderstood). That's right. > I do not know what preference Calc gives to mod, relative to / and *, > for either value of `calc-multiplication-has-precedence'. In Calc, the precedence of the mod operator "%" is equal to that of "/", and so is normally less than that of "*", but "%", "/" and "*" all have equal precedence if `calc-multiplication-has-precedence' is nil. (Parentheses are still a good idea, of course, but not required.) Note that the mod operator "mod", which creates modulo forms, is different than the mod operator "%", which computes remainders. 10 mod 4 = 2 mod 4, and 10 % 4 = 2. "mod" has a much higher precedence. Jay