GNU bug report logs - #914
In CVS Emacs, calc-eval gives multiplication higher precedence than division

Previous Next

Package: emacs;

Reported by: Francis Litterio <flitterio <at> gmail.com>

Date: Sun, 7 Sep 2008 16:20:03 UTC

Severity: normal

Merged with 915, 918, 920, 921, 923, 924, 928, 929, 930, 932, 933, 934, 937, 941, 944

Done: Chong Yidong <cyd <at> stupidchicken.com>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Francis Litterio <flitterio <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org, emacs-devel <at> gnu.org
Subject: bug#914: In CVS Emacs, calc-eval gives multiplication higher precidence than division
Date: Sun, 07 Sep 2008 12:06:38 -0400
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





This bug report was last modified 16 years and 256 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.