Function: calculator-decimal
calculator-decimal is an interactive and byte-compiled function
defined in calculator.el.gz.
Signature
(calculator-decimal)
Documentation
Enter a decimal period.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/calculator.el.gz
(defun calculator-decimal ()
"Enter a decimal period."
(interactive)
(when (and (not calculator-input-radix)
(or calculator-display-fragile
(not (numberp (car calculator-stack))))
(not (and calculator-curnum
(string-match-p "[.eE]" calculator-curnum))))
;; enter the period on the same condition as a digit, only if no
;; period or exponent entered yet
(calculator-clear-fragile)
(setq calculator-curnum (concat (or calculator-curnum "0") "."))
(calculator-update-display)))