ID: 19417 Updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] -Status: Open +Status: Feedback Bug Type: Math related Operating System: RH7.2 PHP Version: 4.2.1 New Comment:
Thank you for taking the time to report a problem with PHP. Unfortunately you are not using a current version of PHP -- the problem might already be fixed. Please download a new PHP version from http://www.php.net/downloads.php If you are able to reproduce the bug with one of the latest versions of PHP, please change the PHP version on this bug report to the version you tested and change the status back to "Open". Again, thank you for your continued support of PHP. I don't have problem. Try CVS version and open again if problem exists. Previous Comments: ------------------------------------------------------------------------ [2002-09-15 10:38:23] [EMAIL PROTECTED] All the following lines output an integer value (6) instead of a float one (6.9): echo 5.2+1.7; echo (float)5.2+(float)1.7; printf("%2.2f",(float)5.2+1.7); echo sprintf("%2.2f",(float)5.2+1.7); ... same thing with "*" operator: echo (float)60*0.7; returns 0 php 4.2.1 (ftp+gd+ctype+bcmath+zlib) Apache 1.3.26 ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=19417&edit=1