Share
 
 

max (AutoLISP)

Returns the largest of the numbers given

Supported Platforms: Windows, Mac OS, and Web

Signature

(max [number number ...])
number

Type: Integer or Real

A numeric value.

Return Values

Type: Integer or Real

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

(max 4.07 -144)
4.07

(max -88 19 5 2)
19

(max 2.1 4 8)
8.0

Was this information helpful?