1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-11-23 07:19:15 +00:00

(math-use-emacs-fn): Make sure that the number is formatted correctly.

This commit is contained in:
Jay Belanger 2009-07-03 01:43:33 +00:00
parent d07e72d3c8
commit 2e9b968b28
2 changed files with 10 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2009-07-03 Jay Belanger <jay.p.belanger@gmail.com>
* calc-math.el (math-use-emacs-fn): Make sure that the number is
formatted correctly.
2009-07-02 Juri Linkov <juri@jurta.org>
* info.el: Virtual Info files and nodes.

View File

@ -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))))))