[Fwd: Re: Other Integers for php 6]

php.internals

Ezra Nugroho

20 years ago
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