#24342 [Opn->Fbk]: Failure in float operations
| From: | derick@php.net | Date: | Thu, 26 Jun 2003 10:55:47 +0000 |
| Subject: | #24342 [Opn->Fbk]: Failure in float operations | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-42534@lists.php.net to get a copy of this message | ||
ID: 24342
Updated by: derick@php.net
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