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. |