Bug #12647: sprintf, doubles and locale

From: Date: Wed, 08 Aug 2001 12:03:28 +0000
Subject: Bug #12647: sprintf, doubles and locale
Groups: php.dev 
Request: Send a blank email to php-dev+get-62547@lists.php.net to get a copy of this message
From: artur@2i.pl 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 separator. Try this: setlocale("LC_NUMERIC", "pl_PL"); echo sprintf("%.2f",doubleval("1,25")); Result: 1.25 (should be 1,25) -- Edit bug report at: http://bugs.php.net/?id=12647&edit=1

« previous php.dev (#62547) next »