Syntax
- float max(a, b)
- string max(a, b)
- float[] max(a, b)
- string[] max(a, b)
Parameters
- a—(float, string, float[], string[])
- b—(float, string, float[], string[])
Must be the same type as a.
Returns
Returns maximum of a and b. For arrays, the operation is applied element-wise and an array with the pairwise maxima is returned.
Related
Examples
max(10, -10)
# result = 10max("abc", "def")
# result = "def"