php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #3819 number_format should allow choice to not default to comma sep for thousands sep
Submitted: 2000-03-13 13:19 UTC Modified: 2001-02-10 14:13 UTC
From: chall5 at tampabay dot rr dot com Assigned:
Status: Closed Package: Feature/Change Request
PHP Version: 3.0.12 OS: Solaris
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: chall5 at tampabay dot rr dot com
New email:
PHP Version: OS:

 

 [2000-03-13 13:19 UTC] chall5 at tampabay dot rr dot com
<? echo number_format(1000, 2, ".", ""); ?>

this results in 1,000.00

a blank thousands separator should be allowed.

ie, 1000.00 should be the resulting output from above code.

first noticed in php v3.0.12 and also verified to happen in php v4.0b4pl1

would be a nice option to have.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-02-10 14:13 UTC] jimw@php.net
appears to have been fixed in 4.0.something.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Tue May 06 19:01:28 2025 UTC