MCPcopy
hub / github.com/anthonynsimon/bild / Max

Function Max

math/integer/helpers.go:13–18  ·  view source on GitHub ↗

Max returns the parameter with the highest value.

(a, b int)

Source from the content-addressed store, hash-verified

11
12// Max returns the parameter with the highest value.
13func Max(a, b int) int {
14 if a > b {
15 return a
16 }
17 return b
18}

Callers 1

TestMaxFunction · 0.85

Calls

no outgoing calls

Tested by 1

TestMaxFunction · 0.68