Structural Informatics Group (SIG) logo
Home | Projects | Demos | Downloads | Publications | Local Info | About Us | New site
Go to the first, previous, next, last section, table of contents.

fn -

-

type: function (subr) 
location: built-in
source file: xlmath.c
Common LISP compatible: yes
supported on: all machines

SYNTAX

(- <expr1> ... )
        <exprN>         -       integer or floating point number/expression

DESCRIPTION

The subtract (-) function subtracts a list of numbers from the first number in the list and returns the result. If there is only one number as an argument, it is negated.

EXAMPLES

(- 1)                                   ; returns -1
(- 1 2)                                 ; returns -1
(- 1 2 3)                               ; returns -4
(- 1 2 3 4)                             ; returns -8
(print (+ 1 2 (* 3.5 (/ 3.9 1.45))))    ; returns and prints 12.4138


Go to the first, previous, next, last section, table of contents.