php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #43190 floor(140000000) returns 1.4E+8
Submitted: 2007-11-05 00:27 UTC Modified: 2007-11-11 18:55 UTC
From: smoove at mail dot ru Assigned:
Status: Not a bug Package: Math related
PHP Version: 5.2.4 OS: Linux(Debian Sarge) + Win XP
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: smoove at mail dot ru
New email:
PHP Version: OS:

 

 [2007-11-05 00:27 UTC] 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

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2007-11-05 01:19 UTC] 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-11 18:55 UTC] jani@php.net
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


 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Wed Jul 16 21:01:33 2025 UTC