(- number1 number2 ...)


Subtract all following numbers from the first number.


This function returns the difference between the numbers. When you have only two numbers, the function subtracts number2 from number1. If there are more than two numbers, subtract the sum of the second through the last number (number2 through numbern) from the first, number1.

Examples

This expression Returns
(- 5 2) 3
(- 6 [-5]) 11
(- 9 3 11) 5
(-) 0
(- 2) -2
(- 4 1.0) 3.00000

Tell me about...

(+ number1 number2 ...)

(1- number)

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

LISP Compatibility

Programming Overview of LISP (LISt Processing) Language