note 82107 rejected from function.floor by betz
| From: | betz@php.net | Date: | Fri, 28 Mar 2008 03:34:33 +0000 |
| Subject: | note 82107 rejected from function.floor by betz | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-137653@lists.php.net to get a copy of this message | ||
Note Submitter: coenen dot rob at gmail dot com
----
Bug in floor() ?
$x = 934.003;
$milliseconds = $x - floor($x);
echo $milliseconds;
results into:
0.0030000000000427
why?
I would expect just 0.003??
>> ow sorry my PHP Version 5.1.6