php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #45668 number_format() issue
Submitted: 2008-07-31 16:46 UTC Modified: 2008-07-31 17:05 UTC
From: challado at ibocchi dot com dot br Assigned:
Status: Not a bug Package: Scripting Engine problem
PHP Version: 5.2.6 OS: Debian lenny/sid
Private report: No CVE-ID: None
 [2008-07-31 16:46 UTC] challado at ibocchi dot com dot br
Description:
------------
Hello all!

I made the follow code to test the number format, because that I have problems in my system.
The code, and the output has follows.


This is a bug or a error in my locale settings, etc?

Reproduce code:
---------------
<?
echo number_format(123123123123123123123123123123123123123,2,',','.');
?>

Expected result:
----------------
123.123.123.123.123.123.123.123.123.123.123.123.123,00

Actual result:
--------------
123.123.123.123.123.100.951.395.432.586.484.383.744,00

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2008-07-31 17:05 UTC] scottmac@php.net
Sorry, but your problem does not imply a bug in PHP itself.  For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system is not the
appropriate forum for asking support questions.  Due to the volume
of reports we can not explain in detail here why your report is not
a bug.  The support channels will be able to provide an explanation
for you.

Thank you for your interest in PHP.

PHP integers are signed integers.

&#8722;2,147,483,648 to +2,147,483,647


 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Sat Dec 20 01:00:01 2025 UTC