#28633 [Opn->Bgs]: sprintf("%3.2f",'1.00') no longer working

From: Date: Fri, 04 Jun 2004 15:21:45 +0000
Subject: #28633 [Opn->Bgs]: sprintf("%3.2f",'1.00') no longer working
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-60374@lists.php.net to get a copy of this message
 ID:               28633
 Updated by:       iliaa@php.net
 Reported By:      jschmidt at thriftycmh dot net
-Status:           Open
+Status:           Bogus
 Bug Type:         Unknown/Other Function
 Operating System: Linux 2.4
 PHP Version:      4.3.7
 New Comment:

Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to
report
a bug at http://bugs.php.net/how-to-report.php

This is the correct behaviour. 


Previous Comments:
------------------------------------------------------------------------

[2004-06-04 17:12:58] jschmidt at thriftycmh dot net

Description:
------------
sprintf("%3.2f",'1.00')

This was working fine in 4.3.6 but not in 4.3.7.  The expected output
is "  1.00"  but is "1.00".  In other words, the leading spaces are no
longer working.

Reproduce code:
---------------
sprintf("%3.2f",'1.00')


Expected result:
----------------
"  1.00"

Actual result:
--------------
"1.00"


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=28633&edit=1


Thread (10 messages)

« previous php.bugs (#60374) next »