Answers for "go find max between ints"

Go
0

how to get max value between two int values in go

number1 , number2 := 10,20
maxvalue := math.Max(float64(number1), float64(number2))
result := int(maxvalue)
Posted by: Guest on July-05-2020
0

go max, maximum integer value

const MAXINT = int(^uint(0) >> 1)   // maximum value for an integer
Posted by: Guest on March-30-2021

Code answers related to "go find max between ints"

Browse Popular Code Answers by Language