]> git.eshelyaron.com Git - emacs.git/commitdiff
(math-use-emacs-fn): Make sure that the number is formatted correctly.
authorJay Belanger <jay.p.belanger@gmail.com>
Fri, 3 Jul 2009 01:43:33 +0000 (01:43 +0000)
committerJay Belanger <jay.p.belanger@gmail.com>
Fri, 3 Jul 2009 01:43:33 +0000 (01:43 +0000)
lisp/ChangeLog
lisp/calc/calc-math.el

index a0527560fdfcb37b39d29468a9ee36088444b366..126d0df81b4cfbc4c9119cbd20b4ff5d85d85f2e 100644 (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.
index c8e8cc1f052ea31a81ab67c4c0264c35c59af2ab..0f934e0af772db7d4b3f6cc28b1496618cc60908 100644 (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))))))