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
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.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
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
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-2022 The PHP Group
All rights reserved.
Last updated: Fri Jul 01 22:05:45 2022 UTC