# HG changeset patch # User Jay Belanger # Date 1235243900 0 # Node ID 37b577ed82cdd55bed5f4e0e646468b52bf1b72c # Parent a23f964bc7016dd906aac4a8bed5b1ff4f99741d (math-use-emacs-fn): Make sure that the lisp number is in decimal. diff -r a23f964bc701 -r 37b577ed82cd lisp/calc/calc-math.el --- a/lisp/calc/calc-math.el Sat Feb 21 18:52:19 2009 +0000 +++ b/lisp/calc/calc-math.el Sat Feb 21 19:18:20 2009 +0000 @@ -105,7 +105,9 @@ (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)