aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJay Belanger2004-11-26 22:39:01 +0000
committerJay Belanger2004-11-26 22:39:01 +0000
commit1bf345d19a925a50b4a67c1435b2095e0839f1e0 (patch)
treec28c7835a48bcbd99da40b47fb627eb2b6822d7a
parentadb0a6165d6d5d00f946f70416ca8499b4065dfd (diff)
downloademacs-1bf345d19a925a50b4a67c1435b2095e0839f1e0.tar.gz
emacs-1bf345d19a925a50b4a67c1435b2095e0839f1e0.zip
(math-format-radix-float): Make pos a local variable.
(math-format-radix-float): Remove unnecessary setq. (math-radix-float-cache): Declare it.
-rw-r--r--lisp/calc/calc-bin.el11
1 files changed, 6 insertions, 5 deletions
diff --git a/lisp/calc/calc-bin.el b/lisp/calc/calc-bin.el
index aaaa4683fcf..0e04d966ee1 100644
--- a/lisp/calc/calc-bin.el
+++ b/lisp/calc/calc-bin.el
@@ -3,8 +3,7 @@
3;; Copyright (C) 1990, 1991, 1992, 1993, 2001 Free Software Foundation, Inc. 3;; Copyright (C) 1990, 1991, 1992, 1993, 2001 Free Software Foundation, Inc.
4 4
5;; Author: David Gillespie <daveg@synaptics.com> 5;; Author: David Gillespie <daveg@synaptics.com>
6;; Maintainers: D. Goel <deego@gnufans.org> 6;; Maintainer: Jay Belanger <belanger@truman.edu>
7;; Colin Walters <walters@debian.org>
8 7
9;; This file is part of GNU Emacs. 8;; This file is part of GNU Emacs.
10 9
@@ -656,7 +655,8 @@
656 (let ((fmt (car calc-float-format)) 655 (let ((fmt (car calc-float-format))
657 (figs (nth 1 calc-float-format)) 656 (figs (nth 1 calc-float-format))
658 (point calc-point-char) 657 (point calc-point-char)
659 (str nil)) 658 (str nil)
659 pos)
660 (if (eq fmt 'fix) 660 (if (eq fmt 'fix)
661 (let* ((afigs (math-abs figs)) 661 (let* ((afigs (math-abs figs))
662 (fp (math-float-parts a (> afigs 0))) 662 (fp (math-float-parts a (> afigs 0)))
@@ -751,8 +751,8 @@
751 (if explo 751 (if explo
752 (let ((estr (let ((calc-number-radix 10) 752 (let ((estr (let ((calc-number-radix 10)
753 (calc-group-digits nil)) 753 (calc-group-digits nil))
754 (setq estr (math-format-number 754 (math-format-number
755 (math-sub explo eadj)))))) 755 (math-sub explo eadj)))))
756 (setq str (if (or (memq calc-language '(math maple)) 756 (setq str (if (or (memq calc-language '(math maple))
757 (> calc-number-radix 14)) 757 (> calc-number-radix 14))
758 (format "%s*%d.^%s" str calc-number-radix estr) 758 (format "%s*%d.^%s" str calc-number-radix estr)
@@ -774,6 +774,7 @@
774 math-radix-digits-cache)))))))) 774 math-radix-digits-cache))))))))
775 775
776(defvar math-radix-float-cache-tag nil) 776(defvar math-radix-float-cache-tag nil)
777(defvar math-radix-float-cache)
777 778
778(defun math-radix-float-power (n) 779(defun math-radix-float-power (n)
779 (if (eq n 0) 780 (if (eq n 0)