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.

min

min

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

SYNTAX

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

DESCRIPTION

The MIN function returns the minimum (most negative or most nearly negative) numeric expression from the list of arguments.

EXAMPLES

(min 1)                                 ; returns 1
(min 8 7 4 2)                           ; returns 2
(min 2 3 -1 -99)                        ; returns -99
(setq a '( 9 3 5 2))                    ; make a numeric list - (9 3 5 2)
(apply 'min a)                          ; returns 2
(apply #'min a)                         ; returns 2
(apply 'max a)                          ; returns 9


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