# HG changeset patch # User Jay Belanger # Date 1246585322 0 # Node ID 89a7d79690f9482b4fb02b2a74d960209ace7963 # Parent a7852a825f44be693add2b41e48071b95d6ffa94 (math-use-emacs-fn): Make sure that the number is formatted correctly. diff -r a7852a825f44 -r 89a7d79690f9 lisp/calc/calc-math.el --- a/lisp/calc/calc-math.el Fri Jul 03 01:36:12 2009 +0000 +++ b/lisp/calc/calc-math.el Fri Jul 03 01:42:02 2009 +0000 @@ -106,7 +106,11 @@ (number-to-string (funcall fn (string-to-number - (let ((calc-number-radix 10)) + (let + ((calc-number-radix 10) + (calc-float-format (list 'float calc-internal-prec)) + (calc-group-digits nil) + (calc-point-char ".")) (math-format-number (math-float x))))))) (error nil))))))