ID: 24342 Updated by: [EMAIL PROTECTED] Reported By: hostmaster at bemarnet dot es -Status: Open +Status: Feedback Bug Type: Math related Operating System: Gentoo Linux PHP Version: 4.3.2 New Comment:
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 Previous Comments: ------------------------------------------------------------------------ [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
