min

AutoCad AutoLISP Functions

 
min
 
 
 

Returns the smallest of the numbers given

(min [number
number...]) 

Arguments

number

A number.

Return Values

A number. If any number argument is a real, a real is returned; otherwise, an integer is returned. If no argument is supplied, min returns 0.

Examples

Command: (min 683 -10.0)

-10.0

Command: (min 73 2 48 5)

2

Command: (min 73.0 2 48 5)

2.0

Command: (min 2 4 6.7)

2.0