#19417 [Fbk->Csd]: Float Operation get rounded

From: Date: Wed, 09 Oct 2002 02:48:21 +0000
Subject: #19417 [Fbk->Csd]: Float Operation get rounded
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-21878@lists.php.net to get a copy of this message
ID: 19417 Updated by: sniper@php.net Reported By: admin@eurologon.com -Status: Feedback +Status: Closed Bug Type: Math related Operating System: RH7.2 PHP Version: 4.2.1 New Comment: Works fine here with latest CVS. Previous Comments: ------------------------------------------------------------------------ [2002-09-17 21:11:01] yohgaki@php.net 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. ------------------------------------------------------------------------ [2002-09-15 10:38:23] admin@eurologon.com 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

« previous php.bugs (#21878) next »