From:             [EMAIL PROTECTED]
Operating system: 
PHP version:      4.0.6
PHP Bug Type:     Strings related
Bug description:  sprintf, doubles and locale

sprintf ignores locale settings and always use . as the decimal

Try this:

   setlocale("LC_NUMERIC", "pl_PL"); 
   echo sprintf("%.2f",doubleval("1,25"));

(should be 1,25)

Edit bug report at:

PHP Development Mailing List <>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to