Function Entry: MAX
← Prev | ↑ Chapter | Next → | Index | Symbols
Function Entry: MAX
Name
max
Class
Function
Syntax
(max [number number ...])
Arguments and Values
number: zero or more integers or reals.
Description
Returns the largest of the supplied numbers. With no arguments, returns 0.
Return Values
If any argument is a real, the result is a real; otherwise the result is an integer.
Side Effects
None.
Examples
(max 4.07 -144)returns4.07.(max -88 19 5 2)returns19.(max 2.1 4 8)returns8.0.
Availability
- AutoCAD 2026: documented.
- BricsCAD V26: presumed compatible.
- Status: AutoCAD documented; BricsCAD presumed-both pending Phase 4 verification.
Source Notes
- [max (AutoLISP 2026)](https://help.autodesk.com/cloudhelp/2026/ENU/AutoCAD-AutoLISP-Reference/files/GUID-057C56D3-8A15-406B-95CA-68DD859E64FB.htm)
- Status: documented (Phase 3 body fill).