Bug #12046: Strange handling of negative hexadecimal numbers

From: Date: Wed, 11 Jul 2001 12:04:49 +0000
Subject: Bug #12046: Strange handling of negative hexadecimal numbers
Groups: php.dev 
Request: Send a blank email to php-dev+get-59691@lists.php.net to get a copy of this message
From: jerome.delamarche@free.fr Operating system: Linux 2.4 PHP version: 4.0.6 PHP Bug Type: Scripting Engine problem Bug description: Strange handling of negative hexadecimal numbers When I initialize variables with hexadecimal integers, the positive ones are well handled but the negative ones are considered as flots. Try the followin code: <?php $n1 = 0x23456789; // positive $n2 = 0x98765432; // negative echo "$n1,$n2\n"; ?> it outputs: 591751049,1.1911111110821 Jerome -- Edit bug report at: http://bugs.php.net/?id=12046&edit=1

« previous php.dev (#59691) next »