Function: calculator-op-or-exp
calculator-op-or-exp is an interactive and byte-compiled function
defined in calculator.el.gz.
Signature
(calculator-op-or-exp)
Documentation
Either enter an operator or a digit.
Used with +/- for entering them as digits in numbers like 1e-3 (there is no need for negative numbers since these are handled by unary operators).
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/calculator.el.gz
(defun calculator-op-or-exp ()
"Either enter an operator or a digit.
Used with +/- for entering them as digits in numbers like 1e-3 (there is
no need for negative numbers since these are handled by unary
operators)."
(interactive)
(if (and (not calculator-input-radix)
(not calculator-display-fragile)
calculator-curnum
(string-match-p "[eE]$" calculator-curnum))
(calculator-digit)
(calculator-op)))