Mercurial > emacs
changeset 103702:89a7d79690f9
(math-use-emacs-fn): Make sure that the number is formatted correctly.
author | Jay Belanger <jay.p.belanger@gmail.com> |
---|---|
date | Fri, 03 Jul 2009 01:42:02 +0000 |
parents | a7852a825f44 |
children | e133c93925f6 |
files | lisp/calc/calc-math.el |
diffstat | 1 files changed, 5 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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))))))