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...
(setq symbol1 statement1 [symbol2 statement2] ...)
Programming Overview of LISP (LISt Processing) Language
Bricscad™ is commercialized by Bricsys NV. Bricsys NV and Vondle NV are fully owned subsidiaries of Menhirs NV. © 2001- Menhirs NV - All rights reserved. |