Edit report at http://bugs.php.net/bug.php?id=51478&edit=1

 ID:               51478
 Updated by:       paj...@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

Reply via email to