MinOf
Returns the minimum value of two or more numbers.
- Use
math.Inf(1)
to set the initial minimum value to positive infinity. - Use
range
andmath.Min()
to iterate over the numbers and get the minimum value.
Returns the minimum value of two or more numbers.
math.Inf(1)
to set the initial minimum value to positive infinity.range
and math.Min()
to iterate over the numbers and get the minimum value.