summaryrefslogtreecommitdiff
path: root/lisp/calc/calc-math.el
diff options
context:
space:
mode:
authorJay Belanger <jay.p.belanger@gmail.com>2009-07-03 01:43:33 +0000
committerJay Belanger <jay.p.belanger@gmail.com>2009-07-03 01:43:33 +0000
commit2e9b968b289df9e1237d21253c8057789fb33808 (patch)
tree94a6439f4c3d5c57add19fb9a327341988b9e936 /lisp/calc/calc-math.el
parentd07e72d3c85fe8eeae8b6c9a9823ff886d1cfd39 (diff)
downloademacs-2e9b968b289df9e1237d21253c8057789fb33808.tar.gz
(math-use-emacs-fn): Make sure that the number is formatted correctly.
Diffstat (limited to 'lisp/calc/calc-math.el')
-rw-r--r--lisp/calc/calc-math.el6
1 files changed, 5 insertions, 1 deletions
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))))))