#42831 [Opn->Fbk]: function number_format() seems to return a wrong balue
From: tony2001@php.net Date: Wed, 03 Oct 2007 08:19:14 +0000 Subject: #42831 [Opn->Fbk]: function number_format() seems to return a wrong balue References: 1 Groups: php.bugs Request: Send a blank email to php-bugs+get-118126@lists.php.net to get a copy of this message
ID: 42831 Updated by: tony2001@php.net Reported By: naweokawa at free dot fr -Status: Open +Status: Feedback Bug Type: Strings related Operating System: Solaris 10 PHP Version: 5.2.4 New Comment: Cannot reproduce. Previous Comments: ------------------------------------------------------------------------ [2007-10-02 16:55:10] naweokawa at free dot fr Description: ------------ When you use the function number_format with a float value, it seems to returns a value INPUT_FLOAT*100 Reproduce code: --------------- $num2=123456.55; number_format($num2 , 2, ',', ' '); // OUTPUT output : 12 345 655,00 (should be 123 456,55 ) ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=42831&edit=1
Thread (12 messages)
- #42831 [Opn->Fbk]: function number_format() seems to return a wrong balue
- #42831 [Fbk->Opn]: function number_format() seems to return a wrong balue
- #42831 [Opn->Fbk]: function number_format() seems to return a wrong balue
- #42831 [Fbk->Opn]: function number_format() seems to return a wrong balue
- #42831 [Opn->Fbk]: function number_format() seems to return a wrong balue
- #42831 [Fbk->Opn]: function number_format() seems to return a wrong balue
- #42831 [Opn]: function number_format() seems to return a wrong value
- #42831 [Opn->Asn]: function number_format() seems to return a wrong value
- #42831 [Asn]: function number_format() seems to return a wrong value
- #42831 [Asn]: function number_format() seems to return a wrong value
- #42831 [Asn->Bgs]: function number_format() seems to return a wrong value
| « previous | php.bugs (#118126) | next » |
|---|