Function: calculator-exp

calculator-exp is an interactive and byte-compiled function defined in calculator.el.gz.

Signature

(calculator-exp)

Documentation

Enter an exponent, or an "E" digit in hex input mode.

Key Bindings

Source Code

;; Defined in /usr/src/emacs/lisp/calculator.el.gz
(defun calculator-exp ()
  "Enter an exponent, or an \"E\" digit in hex input mode."
  (interactive)
  (cond
    (calculator-input-radix (calculator-digit))
    ((and (or calculator-display-fragile
              (not (numberp (car calculator-stack))))
          (not (and calculator-curnum
                    (string-match-p "[eE]" calculator-curnum))))
     ;; same condition as above, also no E so far
     (calculator-clear-fragile)
     (setq calculator-curnum (concat (or calculator-curnum "1") "e"))
     (calculator-update-display))))