Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
loeg
on Aug 20, 2020
|
parent
|
context
|
favorite
| on:
Math.min(Math.max(num, min), max)
No, the only valid result for NaN is NaN. Saturating range bounds are for real numbers.
Consider applying for YC's Summer 2026 batch! Applications are open till May 4
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: