(+) (Addition operator)

(+ number1 number2 ...)


Add all these numbers together.


This function returns the sum of all numbers. You can use real numbers or integers. Adding all integer numbers returns an integer number. When there is a combination of real numbers and integers, the result is a real number.

Examples

This expression Returns
(+ 6 7) 13
(+ 8 7.25) 15.2500
(+ 12 24 18) 54
(+) 0
(+ 2) 2

Tell me about...

(1- number)

(1+ number)

(setq symbol1 statement1 [symbol2 statement2] ...)

LISP Compatibility

Programming Overview of LISP (LISt Processing) Language