mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
Big hex-values are not overflowed to float (bug #32211)
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@183281 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
caceddf150
commit
2b1ac5dc6e
1 changed files with 4 additions and 4 deletions
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.150 $ -->
|
||||
<!-- $Revision: 1.151 $ -->
|
||||
<chapter id="language.types">
|
||||
<title>Types</title>
|
||||
|
||||
|
@ -408,9 +408,9 @@ $large_number = 2147483648;
|
|||
var_dump($large_number);
|
||||
// output: float(2147483648)
|
||||
|
||||
// this goes also for hexadecimal specified integers:
|
||||
var_dump( 0x80000000 );
|
||||
// output: float(2147483648)
|
||||
// this doesn't go for hexadecimal specified integers:
|
||||
var_dump( 0x100000000 );
|
||||
// output: int(2147483647)
|
||||
|
||||
$million = 1000000;
|
||||
$large_number = 50000 * $million;
|
||||
|
|
Loading…
Reference in a new issue