From:             [EMAIL PROTECTED]
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


-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to