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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
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

Pull Requests

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-2025 The PHP Group
All rights reserved.
Last updated: Wed Jan 15 08:01:29 2025 UTC