From 2e9b968b289df9e1237d21253c8057789fb33808 Mon Sep 17 00:00:00 2001 From: Jay Belanger Date: Fri, 3 Jul 2009 01:43:33 +0000 Subject: [PATCH] (math-use-emacs-fn): Make sure that the number is formatted correctly. --- lisp/ChangeLog | 5 +++++ lisp/calc/calc-math.el | 6 +++++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/lisp/ChangeLog b/lisp/ChangeLog index a0527560fdf..126d0df81b4 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,8 @@ +2009-07-03 Jay Belanger + + * calc-math.el (math-use-emacs-fn): Make sure that the number is + formatted correctly. + 2009-07-02 Juri Linkov * info.el: Virtual Info files and nodes. diff --git a/lisp/calc/calc-math.el b/lisp/calc/calc-math.el index c8e8cc1f052..0f934e0af77 100644 --- a/lisp/calc/calc-math.el +++ b/lisp/calc/calc-math.el @@ -106,7 +106,11 @@ If this can't be done, return NIL." (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)))))) -- 2.11.4.GIT