XLISP min

Nyquist / XLISP 2.0 - Contents | Tutorials | Examples | Reference

# min

Type: | - | function (subr)
Source: | - | xlmath.c

## Syntax

(min expr1 ... )
  exprN - integer or floating point number/expression
  returns - the smallest number in the list of numbers/expressions

## 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

See the min function in the XLISP 2.0 manual.

Back to Top

Nyquist / XLISP 2.0 - Contents | Tutorials | Examples | Reference