<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: PHP Round Up to Nearest Hundred Function</title>
	<atom:link href="http://eligeske.com/php/php-round-up-to-nearest-hundred-function/feed/" rel="self" type="application/rss+xml" />
	<link>http://eligeske.com/php/php-round-up-to-nearest-hundred-function/</link>
	<description>Good information for the geeky kind.</description>
	<lastBuildDate>Wed, 25 Jan 2012 00:19:32 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: eligeske</title>
		<link>http://eligeske.com/php/php-round-up-to-nearest-hundred-function/#comment-80</link>
		<dc:creator>eligeske</dc:creator>
		<pubDate>Thu, 17 Dec 2009 00:04:34 +0000</pubDate>
		<guid isPermaLink="false">http://eligeske.com/?p=97#comment-80</guid>
		<description>Thanks Dan! Nice way to NOT over complicate things.   I am updating the post right now.

changing:
&lt;code&gt;   function roundNearestHundredUp($number){
	$round = round($number, -2);
	if($number &gt; $round){ $round = $round + 100;}
	return $round;
	}&lt;/code&gt;

To:
&lt;code&gt;function roundNearestHundredUp($number)
	{
	return ceil( $number / 100 ) * 100;
	}&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p><code>Thanks Dan! Nice way to NOT over complicate things.   I am updating the post right now.</p><p>changing:<br /></code><code>   function roundNearestHundredUp($number){<br />	$round = round($number, -2);<br />	if($number > $round){ $round = $round + 100;}<br />	return $round;<br />	}</code></p>
<p>To:<br /><code>function roundNearestHundredUp($number)<br />	{<br />	return ceil( $number / 100 ) * 100;<br />	}</code></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dan</title>
		<link>http://eligeske.com/php/php-round-up-to-nearest-hundred-function/#comment-79</link>
		<dc:creator>Dan</dc:creator>
		<pubDate>Wed, 16 Dec 2009 21:43:16 +0000</pubDate>
		<guid isPermaLink="false">http://eligeske.com/?p=97#comment-79</guid>
		<description>You can achieve the same result in one line:

function roundNearestHundredUp($number)
{
	return ceil( $number / 100 ) * 100;
}</description>
		<content:encoded><![CDATA[<p><code>You can achieve the same result in one line:</p><p>function roundNearestHundredUp($number)<br />{<br />	return ceil( $number / 100 ) * 100;<br />}</code></p>
]]></content:encoded>
	</item>
</channel>
</rss>

