Returns the maximum of two numbers.
If both numbers are integers, returns an integer; otherwise, a floating-point number.
Arguments
| Arguments | |
|---|---|
x |
An integer or floating-point number. |
y |
An integer or floating-point number. |
Raised exceptions
| Exceptions | |
|---|---|
TypeError |
If at least one of x or y is not an integer or floating-point number. |
Examples
# Return maximum of two numbers # For example, returns `123` - returnStep: return: ${math.max(123,-456.7)}