(math-use-emacs-fn): Make sure that the lisp number is in decimal.

This commit is contained in:
Jay Belanger 2009-02-21 19:19:58 +00:00
parent 2f49167cb2
commit 7b3752ab87
2 changed files with 8 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2009-02-21 Jay Belanger <jay.p.belanger@gmail.com>
* calc/calc-math.el (math-use-emacs-fn): Make sure that the
lisp number is in decimal.
2009-02-21 Chong Yidong <cyd@stupidchicken.com>
* progmodes/compile.el (compilation-error-regexp-alist-alist):

View file

@ -105,7 +105,9 @@ If this can't be done, return NIL."
(math-read-number
(number-to-string
(funcall fn
(string-to-number (math-format-number (math-float x))))))
(string-to-number
(let ((calc-number-radix 10))
(math-format-number (math-float x)))))))
(error nil))))))
(defun calc-sqrt (arg)