Date: 07/27/00
- Next message: waldschrott: "[PHP-DEV] [Fwd: php/gd_lib/ _reading_ support for GIFs]"
- Previous message: Bug Database: "[PHP-DEV] PHP 4.0 Bug #5810 Updated: Arithmetic Operator %"
- Next in thread: Stanislav Malyshev: "Re: [PHP-DEV] Re: PHP 4.0 Bug #5810 Updated: Arithmetic Operator %"
- Reply: Stanislav Malyshev: "Re: [PHP-DEV] Re: PHP 4.0 Bug #5810 Updated: Arithmetic Operator %"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
echo 0x80000000%0x2;
echo 0x80000001%0x2;
echo 0x80000002%0x2;
echo 0x80000003%0x2;
echo 0x80000080%0x100;
all above will be 0
and 0xffffffff%0x2=0, but -1%2 will be -1...
----- Original Message -----
From: "Bug Database" <php-dev <email protected>>
To: <nimrod <email protected>>
Sent: Thursday, July 27, 2000 12:28 PM
Subject: PHP 4.0 Bug #5810 Updated: Arithmetic Operator %
> Not true. 2147483649 % 3 returns -2. This is because PHP numbers are
signed longs. If you want really large numbers, use bcmath extention.
Yes.. in this case -2 can be interpreted as 0, but... see examples above.
-- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: php-dev-unsubscribe <email protected> For additional commands, e-mail: php-dev-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: waldschrott: "[PHP-DEV] [Fwd: php/gd_lib/ _reading_ support for GIFs]"
- Previous message: Bug Database: "[PHP-DEV] PHP 4.0 Bug #5810 Updated: Arithmetic Operator %"
- Next in thread: Stanislav Malyshev: "Re: [PHP-DEV] Re: PHP 4.0 Bug #5810 Updated: Arithmetic Operator %"
- Reply: Stanislav Malyshev: "Re: [PHP-DEV] Re: PHP 4.0 Bug #5810 Updated: Arithmetic Operator %"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

