+ (add)

AutoCad AutoLISP Functions

 
+ (add)
 
 
 

Returns the sum of all numbers.

(+ [number number] ...)

Arguments

number

A number.

Return Values

The result of the addition. If you supply only one number argument, this function returns the result of adding it to zero. If you supply no arguments, the function returns 0.

Examples

(+ 1 2)                   returns  3 
(+ 1 2 3 4.5)             returns  10.5
(+ 1 2 3 4.0)             returns  10.0