(max number1 number2 ...)
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 |