#44550 [Opn->Bgs]: cos() function
| From: | jani@php.net | Date: | Thu, 27 Mar 2008 14:23:04 +0000 |
| Subject: | #44550 [Opn->Bgs]: cos() function | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-123710@lists.php.net to get a copy of this message | ||
ID: 44550
Updated by: jani@php.net
Reported By: akimkin dot denis at gmail dot com
-Status: Open
+Status: Bogus
Bug Type: Math related
Operating System: Gentoo GNU/Linux
PHP Version: 5.2.6RC2
New Comment:
Next time, use the search before submitting another bogus report. See
bug #31803 for more.
Previous Comments:
------------------------------------------------------------------------
[2008-03-27 13:46:20] akimkin dot denis at gmail dot com
Description:
------------
It seems, that there's some problems with cos() function - it returns
some strange values, when must return zero.
Reproduce code:
---------------
<?
echo cos(M_PI_2); // or cos(deg2rad(90));
?>
Expected result:
----------------
0
Actual result:
--------------
6.12303176911E-17
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=44550&edit=1