Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

The answer is of course

    clamp(min(a,b), max(a,b))
classic c++


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: