Not so large hexadecimals are converted to float (bug #36325)

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@208831 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Jakub Vrana 2006-03-07 00:51:47 +00:00
parent 67c6278415
commit 231ecff7d2

View file

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision: 1.159 $ -->
<!-- $Revision: 1.160 $ -->
<chapter id="language.types">
<title>Types</title>
@ -408,7 +408,11 @@ $large_number = 2147483648;
var_dump($large_number);
// output: float(2147483648)
// this doesn't go for hexadecimal specified integers:
// it's true also for hexadecimal specified integers between 2^31 and 2^32-1:
var_dump( 0xffffffff );
// output: float(4294967295)
// this doesn't go for hexadecimal specified integers above 2^32-1:
var_dump( 0x100000000 );
// output: int(2147483647)