3 ms·
There was a young coder whose hacks His manager often claimed lacked The requisite clarity For to clamp vars would he: Math.min(Math.max(number, min), m
by hanoz 6y ago
There was a young coder whose hacks
His manager often claimed lacked
The requisite clarity
For to clamp vars would he:
Math.min(Math.max(number, min), max);
- drbacon 6y ago@jaffathecake had a problem of truncation and posted to Twitter his calculation. The gist of his attack was min( max( num, min ), max) yet refused to add any annotation.
- deleted 6y ago[deleted]