MaxOf
Returns the maximum value of two or more numbers.
- Use
math.Inf(-1)to set the initial maximum value to negative infinity. - Use
rangeandmath.Max()to iterate over the numbers and get the maximum value.
Returns the maximum value of two or more numbers.
math.Inf(-1) to set the initial maximum value to negative infinity.range and math.Max() to iterate over the numbers and get the maximum value.