(math-use-emacs-fn): Make sure that the lisp number is in decimal.
authorJay Belanger <jay.p.belanger@gmail.com>
Sat, 21 Feb 2009 19:19:58 +0000 (19:19 +0000)
committerJay Belanger <jay.p.belanger@gmail.com>
Sat, 21 Feb 2009 19:19:58 +0000 (19:19 +0000)
lisp/ChangeLog
lisp/calc/calc-math.el

index 19b20ed..44ddc6a 100644 (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):
index 64c5465..c8e8cc1 100644 (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)