Debian Codegraph @

tools/math.go

raw symbols SCIP
1 package tools
2
3 // ClampInt returns the integer "n" bounded between "low" and "high".
4 func ClampInt(n, low, high int) int {
5 return min(high, max(low, n))
6 }