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.

max

max

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

SYNTAX

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

DESCRIPTION

The MAX function returns the largest numeric expression from the list of arguments.

EXAMPLES

(max 1)                                 ; returns 1
(max 1 -5 9)                            ; returns 9
                                        ;
(setq a '( 9 3 5 2))                    ; set up a list - (9 3 5 2)
(apply 'max a)                          ; returns 9
(apply #'max a)                         ; returns 9
(apply 'min a)                          ; returns 2


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