- (subtract)
 
 
 

Subtracts the second and following numbers from the first and returns the difference

(- [number number] ...)

Arguments

number

A number.

Return Values

The result of the subtraction. If you supply more than two number arguments, this function returns the result of subtracting the sum of the second through the last numbers from the first number. If you supply only one number argument, this function subtracts the number from zero, and returns a negative number. Supplying no arguments returns 0.

Examples

(- 50 40)				 returns  10
(- 50 40.0)			 returns  10.0
(- 50 40.0 2.5)		 returns  7.5
(- 8)					 returns  -8