Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
Re: How to portably determine integer limits? (simpler)by tye (Sage) |
on Oct 30, 2003 at 16:16 UTC ( [id://303296]=note: print w/replies, xml ) | Need Help?? |
Somewhat simpler versions of the last two are ~0>>1 and -(~0>>1)-1.
- tye
In Section
Seekers of Perl Wisdom
|
|