#43190 [Opn->Bgs]: floor(140000000) returns 1.4E+8
| From: | jani@php.net | Date: | Sun, 11 Nov 2007 18:55:25 +0000 |
| Subject: | #43190 [Opn->Bgs]: floor(140000000) returns 1.4E+8 | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-119461@lists.php.net to get a copy of this message | ||
ID: 43190
Updated by: jani@php.net
Reported By: smoove at mail dot ru
-Status: Open
+Status: Bogus
Bug Type: Math related
Operating System: Linux(Debian Sarge) + Win XP
PHP Version: 5.2.4
New Comment:
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to
report
a bug at http://bugs.php.net/how-to-report.php
Previous Comments:
------------------------------------------------------------------------
[2007-11-05 01:19:18] smoove at mail dot ru
Ok, i actually can reproduce the problem...
<?php
for($i=1;$i<=200;$i++)
{
echo floor($i.'000000');
echo '<br>';
}
?>
This gives me the feeling that this is not a Bug?!
------------------------------------------------------------------------
[2007-11-05 00:27:13] smoove at mail dot ru
Description:
------------
I could not reproduce this behavior with any other values.
Reproduce code:
---------------
<?php
$val = floor(140000000);
echo $val;
?>
Expected result:
----------------
140000000
Actual result:
--------------
1.4E+8
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=43190&edit=1