ID: 24342 Updated by: [EMAIL PROTECTED] 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] [EMAIL PROTECTED] 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
