diff options
| author | Jay Belanger | 2009-07-03 01:43:33 +0000 |
|---|---|---|
| committer | Jay Belanger | 2009-07-03 01:43:33 +0000 |
| commit | 2e9b968b289df9e1237d21253c8057789fb33808 (patch) | |
| tree | 94a6439f4c3d5c57add19fb9a327341988b9e936 | |
| parent | d07e72d3c85fe8eeae8b6c9a9823ff886d1cfd39 (diff) | |
| download | emacs-2e9b968b289df9e1237d21253c8057789fb33808.tar.gz emacs-2e9b968b289df9e1237d21253c8057789fb33808.zip | |
(math-use-emacs-fn): Make sure that the number is formatted correctly.
| -rw-r--r-- | lisp/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/calc/calc-math.el | 6 |
2 files changed, 10 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index a0527560fdf..126d0df81b4 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2009-07-03 Jay Belanger <jay.p.belanger@gmail.com> | ||
| 2 | |||
| 3 | * calc-math.el (math-use-emacs-fn): Make sure that the number is | ||
| 4 | formatted correctly. | ||
| 5 | |||
| 1 | 2009-07-02 Juri Linkov <juri@jurta.org> | 6 | 2009-07-02 Juri Linkov <juri@jurta.org> |
| 2 | 7 | ||
| 3 | * info.el: Virtual Info files and nodes. | 8 | * 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." | |||
| 106 | (number-to-string | 106 | (number-to-string |
| 107 | (funcall fn | 107 | (funcall fn |
| 108 | (string-to-number | 108 | (string-to-number |
| 109 | (let ((calc-number-radix 10)) | 109 | (let |
| 110 | ((calc-number-radix 10) | ||
| 111 | (calc-float-format (list 'float calc-internal-prec)) | ||
| 112 | (calc-group-digits nil) | ||
| 113 | (calc-point-char ".")) | ||
| 110 | (math-format-number (math-float x))))))) | 114 | (math-format-number (math-float x))))))) |
| 111 | (error nil)))))) | 115 | (error nil)))))) |
| 112 | 116 | ||