ID: 24342 User updated by: hostmaster at bemarnet dot es Reported By: hostmaster at bemarnet dot es -Status: Feedback +Status: Open Bug Type: Math related Operating System: Gentoo Linux PHP Version: 4.3.2 New Comment:
I have also tested with the latest revision (4.3.2-r2 dated 25 June) Previous Comments: ------------------------------------------------------------------------ [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
