diff options
| author | Gerd Moellmann | 2001-10-12 09:05:29 +0000 |
|---|---|---|
| committer | Gerd Moellmann | 2001-10-12 09:05:29 +0000 |
| commit | 6ac080e1e0c4ed7855334278d76600e42cdb3e69 (patch) | |
| tree | 8198b11e19ae97a0a455b10f5c70915c7ce9c75b | |
| parent | 2ab7765c6219044788868e0891dc6067a08d4ee9 (diff) | |
| download | emacs-6ac080e1e0c4ed7855334278d76600e42cdb3e69.tar.gz emacs-6ac080e1e0c4ed7855334278d76600e42cdb3e69.zip | |
(calculator-eng-display): Don't call concat
with an integer argument.
| -rw-r--r-- | lisp/calculator.el | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lisp/calculator.el b/lisp/calculator.el index b0ca5b4f449..fc8f211e4b9 100644 --- a/lisp/calculator.el +++ b/lisp/calculator.el | |||
| @@ -4,7 +4,7 @@ | |||
| 4 | 4 | ||
| 5 | ;; Author: Eli Barzilay <eli@barzilay.org> | 5 | ;; Author: Eli Barzilay <eli@barzilay.org> |
| 6 | ;; Keywords: tools, convenience | 6 | ;; Keywords: tools, convenience |
| 7 | ;; Time-stamp: <2001-09-23 02:24:35 eli> | 7 | ;; Time-stamp: <2001-10-11 16:18:29 eli> |
| 8 | 8 | ||
| 9 | ;; This file is part of GNU Emacs. | 9 | ;; This file is part of GNU Emacs. |
| 10 | 10 | ||
| @@ -988,7 +988,9 @@ the 'left or 'right when one of the standard modes is used." | |||
| 988 | (setq num (/ num 1000.0)) (setq exp (+ exp 3)) | 988 | (setq num (/ num 1000.0)) (setq exp (+ exp 3)) |
| 989 | (setq i (1+ i))))))) | 989 | (setq i (1+ i))))))) |
| 990 | (or calculator-eng-tmp-show (setq calculator-eng-extra nil)) | 990 | (or calculator-eng-tmp-show (setq calculator-eng-extra nil)) |
| 991 | (let ((str (format (concat "%." calculator-number-digits "f") | 991 | (let ((str (format (concat "%." (number-to-string |
| 992 | calculator-number-digits) | ||
| 993 | "f") | ||
| 992 | num))) | 994 | num))) |
| 993 | (concat (let ((calculator-remove-zeros | 995 | (concat (let ((calculator-remove-zeros |
| 994 | ;; make sure we don't leave integers | 996 | ;; make sure we don't leave integers |