unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* In CVS Emacs, calc-eval gives multiplication higher precidence than division
@ 2008-09-07 16:06 Francis Litterio
  2008-09-07 16:37 ` Jay Belanger
  0 siblings, 1 reply; 19+ messages in thread
From: Francis Litterio @ 2008-09-07 16:06 UTC (permalink / raw)
  To: bug-gnu-emacs, emacs-devel

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




^ permalink raw reply	[flat|nested] 19+ messages in thread

end of thread, other threads:[~2008-09-09 13:26 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-09-07 16:06 In CVS Emacs, calc-eval gives multiplication higher precidence than division Francis Litterio
2008-09-07 16:37 ` Jay Belanger
2008-09-07 18:15   ` Francis Litterio
2008-09-07 19:46   ` Stefan Monnier
2008-09-07 20:19     ` bug#920: " Lennart Borgman (gmail)
2008-09-07 20:32     ` Randal L. Schwartz
2008-09-08 10:30       ` Carsten Dominik
2008-09-08 11:01         ` Lennart Borgman
2008-09-08 20:33           ` Carsten Dominik
2008-09-08 20:39             ` Lennart Borgman (gmail)
2008-09-08 20:43               ` Randal L. Schwartz
2008-09-08 20:53                 ` bug#914: " Lennart Borgman (gmail)
2008-09-08 21:42                 ` Stefan Monnier
2008-09-09  8:11                 ` Richard M. Stallman
2008-09-09 13:26                   ` Stefan Monnier
2008-09-08 13:01         ` Stefan Monnier
2008-09-07 20:35     ` Jay Belanger
2008-09-07 21:15       ` Stefan Monnier
2008-09-07 21:19         ` Lennart Borgman (gmail)

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).