#22887 [NEW]: sprintf( "%.2f", 10.75 ); returns "0.00"
| From: | josh at chatgris dot com | Date: | Wed, 26 Mar 2003 05:36:21 +0000 |
| Subject: | #22887 [NEW]: sprintf( "%.2f", 10.75 ); returns "0.00" | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-36444@lists.php.net to get a copy of this message | ||
From: josh at chatgris dot com
Operating system: Gentoo Linux /w apache2
PHP version: 4.3.1
PHP Bug Type: Scripting Engine problem
Bug description: sprintf( "%.2f", 10.75 ); returns "0.00"
Sample script
<?php
echo sprintf( "%.2f", 10.75 );
?>
returns 0.00
this is NOT the expected behaviour.
Using apache2, not tested on apache1.
--
Edit bug report at http://bugs.php.net/?id=22887&edit=1
--
Try a CVS snapshot: http://bugs.php.net/fix.php?id=22887&r=trysnapshot
Fixed in CVS: http://bugs.php.net/fix.php?id=22887&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=22887&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=22887&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=22887&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=22887&r=support
Expected behavior: http://bugs.php.net/fix.php?id=22887&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=22887&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=22887&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=22887&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=22887&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=22887&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=22887&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=22887&r=gnused