#24342 [NEW]: Failure in float operations
| From: | hostmaster at bemarnet dot es | Date: | Thu, 26 Jun 2003 10:32:30 +0000 |
| Subject: | #24342 [NEW]: Failure in float operations | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-42533@lists.php.net to get a copy of this message | ||
From: hostmaster at bemarnet dot es
Operating system: Gentoo Linux
PHP version: 4.3.2
PHP Bug Type: Math related
Bug description: Failure in float operations
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 bug report at http://bugs.php.net/?id=24342&edit=1
--
Try a CVS snapshot: http://bugs.php.net/fix.php?id=24342&r=trysnapshot
Fixed in CVS: http://bugs.php.net/fix.php?id=24342&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=24342&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=24342&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=24342&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=24342&r=support
Expected behavior: http://bugs.php.net/fix.php?id=24342&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=24342&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=24342&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=24342&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=24342&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=24342&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=24342&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=24342&r=gnused