#20185 [Bgs]: floor() function error
| From: | hholzgra@php.net | Date: | Thu, 31 Oct 2002 11:10:18 +0000 |
| Subject: | #20185 [Bgs]: floor() function error | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-23779@lists.php.net to get a copy of this message | ||
ID: 20185
Updated by: hholzgra@php.net
Reported By: down94@kimsnet.co.kr
Status: Bogus
Bug Type: *Math Functions
Operating System: solaris
PHP Version: 4.2.2
New Comment:
see http://php.net/float
Previous Comments:
------------------------------------------------------------------------
[2002-10-31 03:33:36] derick@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
------------------------------------------------------------------------
[2002-10-31 03:32:31] down94@kimsnet.co.kr
// code
$a = 4.1 - 0.1;
$b = 4;
echo "$a, $b <br>";
echo floor($a).", ".floor($b);
// result
4, 4
3, 4
It's same result (int)$a.
Good luck!
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=20185&edit=1