Bug #51478 [Opn->Bgs]: Unexpected result for tan(M_PI_2)
| From: | pajoye@php.net | Date: | Mon, 05 Apr 2010 13:46:39 +0000 |
| Subject: | Bug #51478 [Opn->Bgs]: Unexpected result for tan(M_PI_2) | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-149322@lists.php.net to get a copy of this message | ||
Edit report at http://bugs.php.net/bug.php?id=51478&edit=1
ID: 51478
Updated by: pajoye@php.net
Reported by: rik dot veenboer at gmail dot com
Summary: Unexpected result for tan(M_PI_2)
-Status: Open
+Status: Bogus
Type: Bug
Package: Math related
Operating System: Windows 7
PHP Version: 5.3.2
New Comment:
Please read again the tangent properties (and PI).
Previous Comments:
------------------------------------------------------------------------
[2010-04-05 14:49:49] rik dot veenboer at gmail dot com
Description:
------------
When running the code, the return value is a float: 1.6331239353195E+16,
while a value of 1 is expected. This was posted before as bug #31236,
but not fixed since 2004.
Test script:
---------------
tan(M_PI_2)
Expected result:
----------------
1
Actual result:
--------------
1.6331239353195E+16
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/bug.php?id=51478&edit=1