php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #44550 cos() function
Submitted: 2008-03-27 13:46 UTC Modified: 2008-03-27 14:23 UTC
From: akimkin dot denis at gmail dot com Assigned:
Status: Not a bug Package: Math related
PHP Version: 5.2.6RC2 OS: Gentoo GNU/Linux
Private report: No CVE-ID: None
 [2008-03-27 13:46 UTC] 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

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2008-03-27 14:23 UTC] jani@php.net
Next time, use the search before submitting another bogus report. See bug #31803 for more.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Apr 16 05:01:29 2024 UTC