From:             bichinhoverde at spwinternet dot com dot br
Operating system: windows and linux
PHP version:      4.3.6
PHP Bug Type:     Unknown/Other Function
Bug description:  number_format function bug

Description:
------------
When I put an empty string '' as the decimal point in the number_format
function, it uses the dot '.' as decimal point.

The function works well for the thousands separator.

Reproduce code:
---------------
print number_format(1234.5678, 2, '', '');


Expected result:
----------------
123457

Actual result:
--------------
1234.57

-- 
Edit bug report at http://bugs.php.net/?id=28228&edit=1
-- 
Try a CVS snapshot (php4):  http://bugs.php.net/fix.php?id=28228&r=trysnapshot4
Try a CVS snapshot (php5):  http://bugs.php.net/fix.php?id=28228&r=trysnapshot5
Fixed in CVS:               http://bugs.php.net/fix.php?id=28228&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=28228&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=28228&r=needtrace
Need Reproduce Script:      http://bugs.php.net/fix.php?id=28228&r=needscript
Try newer version:          http://bugs.php.net/fix.php?id=28228&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=28228&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=28228&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=28228&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=28228&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=28228&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=28228&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=28228&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=28228&r=isapi
Install GNU Sed:            http://bugs.php.net/fix.php?id=28228&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=28228&r=float

Reply via email to