Simplified Common Lisp reference
-
Symbol class: Mathematics, Arithmetics, Logic and Comparisons
Syntax:
Symbol type: function
-numbers(one or more) => number
Argument description:
numbers numeric values

- function computes difference between first value and sum of the rest. When called with only one argument, it does negation. It does type conversions for numbers. There is no wraparound in integer numbers - they are arbitrary long. It works for all number types including integer, rational, floating point and complex.

(- 1 2 3) => -4
(- 1 2) => -1
(- 1) => -1
(- 1234567890123456789 9876543210987654321) => -8641975320864197532
(- 1.3 -5) => 6.3
(- 1.3d0 -5) => 6.3d0
(- #c(2 4) 1) => #C(1 4)
(- 3/4 7/9) => -1/36
Function indexFull documentation for - (HyperSpec)