☰
Debian Codegraph
@
3.8.0-1
/
/
tools
/
math.go
☽
☼
tools/math.go
code
plain
raw
symbols
SCIP
Expat
2013-2018 GitHub, Inc. and Git LFS contributors
debian/copyright
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
}