Bug #67702 [Opn]: Unexpected return

From: Date: Tue, 29 Jul 2014 02:06:18 +0000
Subject: Bug #67702 [Opn]: Unexpected return
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-186852@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=67702&edit=1

 ID:                 67702
 User updated by:    ricardo at multdata dot com dot br
 Reported by:        ricardo at multdata dot com dot br
 Summary:            Unexpected return
 Status:             Open
 Type:               Bug
 Package:            Unknown/Other Function
 Operating System:   Windows 8.1
 PHP Version:        5.5.15
 Block user comment: N
 Private report:     N

 New Comment:

Sorry, correct result expected 1,00


Previous Comments:
------------------------------------------------------------------------
[2014-07-29 02:03:43] ricardo at multdata dot com dot br

Description:
------------
---
From manual page: http://www.php.net/function.number-format
---


Test script:
---------------
$a = 1;
echo number_format($a, 2, ',', '');

Actual result = 1

expected result = 1.00



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



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


Thread (4 messages)

« previous php.bugs (#186852) next »