[Fwd: Re: [PHP-DEV] Other Integers for php 6]
| From: | Ezra Nugroho | Date: | Thu, 09 Feb 2006 19:49:09 +0000 |
| Subject: | [Fwd: Re: [PHP-DEV] Other Integers for php 6] | ||
| Groups: | php.internals | ||
| Request: | Send a blank email to internals+get-21826@lists.php.net to get a copy of this message | ||
Seth Price corrected me (thanks Seth!). I actually only loose one bit
for the sign.
echo (int)pow(2, 31);
> 1073741824
echo (int)pow(2, 32);
> -2147483648
That's certainly a relief.
I don't know if there are other reasons to have unsigned integers. I
certainly don't mind having it. However it is probably a small issue
since PHP automatically cast large numbers to float anyway.
Thank you all,
Ezra