Y
Hacker News
new
|
ask
|
show
|
jobs
by
iknowstuff
880 days ago
The answer is of course
clamp(min(a,b), max(a,b))
classic c++