emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

emacs-27 aea1b4d: Revert "Fix calculator division truncation (bug#40892)


From: Eli Zaretskii
Subject: emacs-27 aea1b4d: Revert "Fix calculator division truncation (bug#40892)"
Date: Thu, 30 Apr 2020 10:04:04 -0400 (EDT)

branch: emacs-27
commit aea1b4db72df92595a3f642d18bf57254d74772b
Author: Eli Zaretskii <address@hidden>
Commit: Eli Zaretskii <address@hidden>

    Revert "Fix calculator division truncation (bug#40892)"
    
    This reverts commit 82140c510c4d27e639b4bca1e9bf158f0f66c375.
    (Bug#40892)
---
 lisp/calculator.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lisp/calculator.el b/lisp/calculator.el
index 7e0b2fc..6996990 100644
--- a/lisp/calculator.el
+++ b/lisp/calculator.el
@@ -864,7 +864,7 @@ The result should not exceed the screen width."
                  "\\.\\([^0-9].*\\)?$" ".0\\1" str))
            (str (replace-regexp-in-string
                  "[eE][+-]?\\([^0-9].*\\)?$" "e0\\1" str)))
-      (float (string-to-number str)))))
+      (string-to-number str))))
 
 (defun calculator-push-curnum ()
   "Push the numeric value of the displayed number to the stack."



reply via email to

[Prev in Thread] Current Thread [Next in Thread]