projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
82140c5
)
Revert "Fix calculator division truncation (bug#40892)"
author
Eli Zaretskii
<eliz@gnu.org>
Thu, 30 Apr 2020 14:02:57 +0000
(17:02 +0300)
committer
Eli Zaretskii
<eliz@gnu.org>
Thu, 30 Apr 2020 14:02:57 +0000
(17:02 +0300)
This reverts commit
82140c510c4d27e639b4bca1e9bf158f0f66c375
.
(Bug#40892)
lisp/calculator.el
patch
|
blob
|
history
diff --git
a/lisp/calculator.el
b/lisp/calculator.el
index 7e0b2fcc6a3a876461d43158772a8bb178566529..6996990814d0b6110f8a5909ee1aba1bccaf350a 100644
(file)
--- 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."