3 ms·
But the parsed value was 144. It's less than 256! It fits! Indeed, all 3 conditions for returning true were satisfied. Just goes to show the value of accurate
by tom_ 3y ago
But the parsed value was 144. It's less than 256! It fits!
Indeed, all 3 conditions for returning true were satisfied. Just goes to show the value of accurate documentation: (Always safest to trust the docs. The code could easily be wrong!)
- string is 3 chars or less
- string contains no non-digit chars
- parsed value is less than 256