mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 08:58:56 +00:00
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:
parent
67c6278415
commit
231ecff7d2
1 changed files with 6 additions and 2 deletions
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in a new issue