Function: ses-average

ses-average is a byte-compiled function defined in ses.el.gz.

Signature

(ses-average LIST)

Documentation

Calculate the sum of the numbers in LIST, divided by their length.

Blanks are ignored. Result is always floating-point, even if all args are integers.

Source Code

;; Defined in /usr/src/emacs/lisp/ses.el.gz
(defun ses-average (list)
  "Calculate the sum of the numbers in LIST, divided by their length.
Blanks are ignored.  Result is always floating-point, even if all
args are integers."
  (setq list (apply #'ses-delete-blanks list))
  (/ (float (apply #'+ list)) (length list)))