#22887 [Opn->Ana]: sprintf( "%.2f", 10.75 ); returns "0.00"

From: Date: Wed, 26 Mar 2003 06:28:12 +0000
Subject: #22887 [Opn->Ana]: sprintf( "%.2f", 10.75 ); returns "0.00"
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-36446@lists.php.net to get a copy of this message
ID: 22887 Updated by: rasmus@php.net Reported By: josh at chatgris dot com -Status: Open +Status: Analyzed Bug Type: Scripting Engine problem Operating System: Gentoo Linux /w apache2 PHP Version: 4.3.1 New Comment: Works just fine from in CLI and Apache1. Don't have an Apache2 server handy for testing this. Previous Comments: ------------------------------------------------------------------------ [2003-03-25 23:36:21] josh at chatgris dot com Sample script <?php echo sprintf( "%.2f", 10.75 ); ?> returns 0.00 this is NOT the expected behaviour. Using apache2, not tested on apache1. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=22887&edit=1

« previous php.bugs (#36446) next »