Re: A little maths problem
| From: | Sascha Schumann | Date: | Tue, 15 Aug 2000 09:04:05 +0000 |
| Subject: | Re: A little maths problem | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-11759@lists.php.net to get a copy of this message | ||
On Tue, 15 Aug 2000, Perry Loh wrote:
> A little question on maths, why does PHP return the following answer :
>
> 2634023077 xor 407240870 = -1730242778
>
> whereas the correct result should be actually,with a calculator :
>
> 42634023077 xor 407240870 = 2235957251
>
> I'm wondering if this is a bug, if it is or isn't , is there a workaround to
> get the correct answer ?
Integers are limited to signed 32 bits in Zend, so the
maximum positive value is 2^31-1.
- Sascha