diff options
| author | Colin Walters | 2002-04-14 01:51:15 +0000 |
|---|---|---|
| committer | Colin Walters | 2002-04-14 01:51:15 +0000 |
| commit | 23cbf556abc3fa698228c250f84cccf9187e03c3 (patch) | |
| tree | f612a8dd0a26c5f431c08323aba49db0927ee15d | |
| parent | 57c9cc3ee1c9c375535fb35f33588b8eced9292a (diff) | |
| download | emacs-23cbf556abc3fa698228c250f84cccf9187e03c3.tar.gz emacs-23cbf556abc3fa698228c250f84cccf9187e03c3.zip | |
(math-format-radix-float): Load `calc-ext' before we call `math-group-float'.
| -rw-r--r-- | lisp/calc/calc-bin.el | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/lisp/calc/calc-bin.el b/lisp/calc/calc-bin.el index e97c97828c4..16834483d7e 100644 --- a/lisp/calc/calc-bin.el +++ b/lisp/calc/calc-bin.el | |||
| @@ -676,8 +676,9 @@ | |||
| 676 | (setq str (substring str 1) | 676 | (setq str (substring str 1) |
| 677 | int (math-add int 1)))) | 677 | int (math-add int 1)))) |
| 678 | (setq str (concat (math-format-number int) point str))) | 678 | (setq str (concat (math-format-number int) point str))) |
| 679 | (if calc-group-digits | 679 | (when calc-group-digits |
| 680 | (setq str (math-group-float str)))) | 680 | (require 'calc-ext) |
| 681 | (setq str (math-group-float str)))) | ||
| 681 | (setq figs 0)))) | 682 | (setq figs 0)))) |
| 682 | (or str | 683 | (or str |
| 683 | (let* ((prec calc-internal-prec) | 684 | (let* ((prec calc-internal-prec) |
| @@ -745,8 +746,8 @@ | |||
| 745 | (while (eq (aref str (1- pos)) ?0) (setq pos (1- pos))) | 746 | (while (eq (aref str (1- pos)) ?0) (setq pos (1- pos))) |
| 746 | (and explo (eq (aref str (1- pos)) ?.) (setq pos (1- pos))) | 747 | (and explo (eq (aref str (1- pos)) ?.) (setq pos (1- pos))) |
| 747 | (setq str (substring str 0 pos)) | 748 | (setq str (substring str 0 pos)) |
| 748 | (if calc-group-digits | 749 | (when calc-group-digits |
| 749 | (setq str (math-group-float str))) | 750 | (setq str (math-group-float str))) |
| 750 | (if explo | 751 | (if explo |
| 751 | (let ((estr (let ((calc-number-radix 10) | 752 | (let ((estr (let ((calc-number-radix 10) |
| 752 | (calc-group-digits nil)) | 753 | (calc-group-digits nil)) |