diff options
| author | Eli Zaretskii | 2020-04-30 17:02:57 +0300 |
|---|---|---|
| committer | Eli Zaretskii | 2020-04-30 17:02:57 +0300 |
| commit | aea1b4db72df92595a3f642d18bf57254d74772b (patch) | |
| tree | ec12c09d13c971f769e298113c94022477d0ab03 | |
| parent | 82140c510c4d27e639b4bca1e9bf158f0f66c375 (diff) | |
| download | emacs-aea1b4db72df92595a3f642d18bf57254d74772b.tar.gz emacs-aea1b4db72df92595a3f642d18bf57254d74772b.zip | |
Revert "Fix calculator division truncation (bug#40892)"
This reverts commit 82140c510c4d27e639b4bca1e9bf158f0f66c375.
(Bug#40892)
| -rw-r--r-- | lisp/calculator.el | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/calculator.el b/lisp/calculator.el index 7e0b2fcc6a3..6996990814d 100644 --- a/lisp/calculator.el +++ b/lisp/calculator.el | |||
| @@ -864,7 +864,7 @@ The result should not exceed the screen width." | |||
| 864 | "\\.\\([^0-9].*\\)?$" ".0\\1" str)) | 864 | "\\.\\([^0-9].*\\)?$" ".0\\1" str)) |
| 865 | (str (replace-regexp-in-string | 865 | (str (replace-regexp-in-string |
| 866 | "[eE][+-]?\\([^0-9].*\\)?$" "e0\\1" str))) | 866 | "[eE][+-]?\\([^0-9].*\\)?$" "e0\\1" str))) |
| 867 | (float (string-to-number str))))) | 867 | (string-to-number str)))) |
| 868 | 868 | ||
| 869 | (defun calculator-push-curnum () | 869 | (defun calculator-push-curnum () |
| 870 | "Push the numeric value of the displayed number to the stack." | 870 | "Push the numeric value of the displayed number to the stack." |