#24342 [Opn->Bgs]: Failure in float operations

From: Date: Thu, 26 Jun 2003 15:51:38 +0000
Subject: #24342 [Opn->Bgs]: Failure in float operations
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-42550@lists.php.net to get a copy of this message
ID: 24342 Updated by: iliaa@php.net Reported By: hostmaster at bemarnet dot es -Status: Open +Status: Bogus Bug Type: Math related Operating System: Gentoo Linux PHP Version: 4.3.2 New Comment: Sorry, but your problem does not imply a bug in PHP itself. For a list of more appropriate places to ask for help using PHP, please visit http://www.php.net/support.php as this bug system is not the appropriate forum for asking support questions. Thank you for your interest in PHP. Over optimization by gentoo can often result of corruption of floats. This is not a php bug. Previous Comments: ------------------------------------------------------------------------ [2003-06-26 06:28:27] hostmaster at bemarnet dot es I have also tested with the latest revision (4.3.2-r2 dated 25 June) ------------------------------------------------------------------------ [2003-06-26 05:55:46] derick@php.net Please try using this CVS snapshot: http://snaps.php.net/php4-STABLE-latest.tar.gz For Windows: http://snaps.php.net/win32/php4-win32-STABLE-latest.zip ------------------------------------------------------------------------ [2003-06-26 05:32:30] hostmaster at bemarnet dot es Description: ------------ Float operations (sprintf, number_format, etc..) fail. Reproduce code: --------------- <? $num = 57.4523; echo "1 : $num<br>"; echo "2 : ".sprintf("%2.02f", $num)."<br>"; echo "3 : ".number_format($num,2,'.',','); ?> Expected result: ---------------- 1 : 57.4523 2 : 57.45 3 : 57.45 Actual result: -------------- 1 : 57.4523 2 : i.00 3 : i00 ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=24342&edit=1

« previous php.bugs (#42550) next »