max

AutoCad AutoLISP Functions

 
max
 
 
 

Returns the largest of the numbers given

(max [number
number...]) 

Arguments

number

A number.

Return Values

A number. If any of the arguments are real numbers, a real is returned; otherwise an integer is returned. If no argument is supplied, max returns 0.

Examples

Command: (max 4.07 -144)

4.07

Command: (max -88 19 5 2)

19

Command: (max 2.1 4 8)

8.0