Determine which is the biggest number.
The max function chooses the greatest number (real number or integers) from the list. If all the numbers are real, the result is real. If all the numbers are integers, the result is an integer. The combination of real numbers and integers results in a real number.
Examples
| Code | Returns |
|---|---|
| (max 22 56) | 56 |
| (max -9 -60) | 9 |
| (max 25 19.9) | 25.0000 |
| (max 2) | 2 |
| (max) | 0 |
Tell me about...
Programming Overview of LISP (LISt Processing) Language
| Bricscad™ is commercialized by Bricsys NV. Bricsys NV and Vondle NV are fully owned subsidiaries of Menhirs NV. © 2001- Menhirs NV - All rights reserved. |