<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.0.5" -->
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
	<title>Comments on: Use PHP number_format</title>
	<link>http://www.melbournechapter.net/wordpress/programming-languages/php/cman/2006/04/24/use-php-number_format-for-presentation-of-numbers/</link>
	<description>web application development with popular technologies</description>
	<pubDate>Mon, 13 Oct 2008 11:23:15 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.0.5</generator>

	<item>
		<title>by: Cameron Manderson</title>
		<link>http://www.melbournechapter.net/wordpress/programming-languages/php/cman/2006/04/24/use-php-number_format-for-presentation-of-numbers/#comment-81</link>
		<pubDate>Thu, 27 Apr 2006 22:16:33 +0000</pubDate>
		<guid>http://www.melbournechapter.net/wordpress/programming-languages/php/cman/2006/04/24/use-php-number_format-for-presentation-of-numbers/#comment-81</guid>
					<description>Creating an RGB Value using sprintf() would be sprintf('#%02X%02X%02X', $red, $green, $blue);</description>
		<content:encoded><![CDATA[<p>Creating an RGB Value using sprintf() would be sprintf(&#8217;#%02X%02X%02X&#8217;, $red, $green, $blue);
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Richard Lee</title>
		<link>http://www.melbournechapter.net/wordpress/programming-languages/php/cman/2006/04/24/use-php-number_format-for-presentation-of-numbers/#comment-77</link>
		<pubDate>Tue, 25 Apr 2006 22:39:12 +0000</pubDate>
		<guid>http://www.melbournechapter.net/wordpress/programming-languages/php/cman/2006/04/24/use-php-number_format-for-presentation-of-numbers/#comment-77</guid>
					<description>Should also be noted that number_format() returns a string, so perform all numerical calculations before using number_format().

Also, another alternative to sprintf() for zerofilling is the str_pad() function:

echo str_pad(6, 3, "0", STR_PAD_LEFT);</description>
		<content:encoded><![CDATA[<p>Should also be noted that number_format() returns a string, so perform all numerical calculations before using number_format().</p>
<p>Also, another alternative to sprintf() for zerofilling is the str_pad() function:</p>
<p>echo str_pad(6, 3, &#8220;0&#8243;, STR_PAD_LEFT);
</p>
]]></content:encoded>
				</item>
</channel>
</rss>
