|  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
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: akimkin dot denis at gmail dot com
New email:
PHP Version: OS:


 [2008-03-27 13:46 UTC] akimkin dot denis at gmail dot com
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:

Actual result:


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2008-03-27 14:23 UTC]
Next time, use the search before submitting another bogus report. See bug #31803 for more.
PHP Copyright © 2001-2022 The PHP Group
All rights reserved.
Last updated: Fri Jul 01 22:05:45 2022 UTC