Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

#33107 [Opn->Csd]: example code is incorrect
ID:               33107
Updated by:       vrana@php.net
Reported By:      jmarbas at hotmail dot com
-Status:           Open
+Status:           Closed
Bug Type:         Documentation problem
Operating System: XP
PHP Version:      Irrelevant
New Comment:

This bug has been fixed in the documentation's XML sources. Since the
online and downloadable versions of the documentation need some time
to get updated, we would like to ask you to be a bit patient.

Thank you for the report, and for helping us make our documentation
better.


Previous Comments:
------------------------------------------------------------------------

[2005-05-23 11:02:37] jmarbas at hotmail dot com

Description:
------------
On page http://ca.php.net/manual/en/function.number-format.php the
example code is incorrect because the number 1234.56 is rounded up to
1235 when you pass number_format only one parameter.

For example the code below will output 1235.

$number = 1234.56;
//english notation(default)
echo number_format($number)."<br />";
echo "should be 1,234 as per the example code on page";

You should modify the example code on that page to reflect reality.

Reproduce code:
---------------
$number = 1234.56;
//english notation(default)
echo number_format($number)."<br />";
echo "should be 1,234 as per the example code on page";

Expected result:
----------------
1235



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


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

Report this thread to moderator Post Follow-up to this message
Old Post
vrana@php.net
05-27-05 01:57 AM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

PHP Documentation archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 06:29 PM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.