diff options
author | Jay Belanger <jay.p.belanger@gmail.com> | 2004-11-26 22:39:01 +0000 |
---|---|---|
committer | Jay Belanger <jay.p.belanger@gmail.com> | 2004-11-26 22:39:01 +0000 |
commit | 1bf345d19a925a50b4a67c1435b2095e0839f1e0 (patch) | |
tree | c28c7835a48bcbd99da40b47fb627eb2b6822d7a /lisp/calc | |
parent | adb0a6165d6d5d00f946f70416ca8499b4065dfd (diff) | |
download | emacs-1bf345d19a925a50b4a67c1435b2095e0839f1e0.tar.gz emacs-1bf345d19a925a50b4a67c1435b2095e0839f1e0.tar.bz2 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.
Diffstat (limited to 'lisp/calc')
-rw-r--r-- | lisp/calc/calc-bin.el | 11 |
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 @@ ;; Copyright (C) 1990, 1991, 1992, 1993, 2001 Free Software Foundation, Inc. ;; Author: David Gillespie <daveg@synaptics.com> -;; Maintainers: D. Goel <deego@gnufans.org> -;; Colin Walters <walters@debian.org> +;; Maintainer: Jay Belanger <belanger@truman.edu> ;; This file is part of GNU Emacs. @@ -656,7 +655,8 @@ (let ((fmt (car calc-float-format)) (figs (nth 1 calc-float-format)) (point calc-point-char) - (str nil)) + (str nil) + pos) (if (eq fmt 'fix) (let* ((afigs (math-abs figs)) (fp (math-float-parts a (> afigs 0))) @@ -751,8 +751,8 @@ (if explo (let ((estr (let ((calc-number-radix 10) (calc-group-digits nil)) - (setq estr (math-format-number - (math-sub explo eadj)))))) + (math-format-number + (math-sub explo eadj))))) (setq str (if (or (memq calc-language '(math maple)) (> calc-number-radix 14)) (format "%s*%d.^%s" str calc-number-radix estr) @@ -774,6 +774,7 @@ math-radix-digits-cache)))))))) (defvar math-radix-float-cache-tag nil) +(defvar math-radix-float-cache) (defun math-radix-float-power (n) (if (eq n 0) |