<?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"
	>
<channel>
	<title>Comments on: PHP Round number to Nearest X</title>
	<atom:link href="http://www.markblah.com/2008/05/11/php-round-number-to-nearest-x/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.markblah.com/2008/05/11/php-round-number-to-nearest-x/</link>
	<description>This is my secret computer hideout.</description>
	<pubDate>Mon, 08 Sep 2008 17:24:41 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5.1</generator>
		<item>
		<title>By: Mark</title>
		<link>http://www.markblah.com/2008/05/11/php-round-number-to-nearest-x/#comment-7</link>
		<dc:creator>Mark</dc:creator>
		<pubDate>Wed, 28 May 2008 02:56:57 +0000</pubDate>
		<guid isPermaLink="false">http://www.markblah.com/?p=10#comment-7</guid>
		<description>sorry, this rounds to the nearest multiple of 9, not to the closest number.</description>
		<content:encoded><![CDATA[<p>sorry, this rounds to the nearest multiple of 9, not to the closest number.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alix Axel</title>
		<link>http://www.markblah.com/2008/05/11/php-round-number-to-nearest-x/#comment-6</link>
		<dc:creator>Alix Axel</dc:creator>
		<pubDate>Fri, 23 May 2008 20:05:04 +0000</pubDate>
		<guid isPermaLink="false">http://www.markblah.com/?p=10#comment-6</guid>
		<description>Sorry the last comment got messed up by the php tags.

&lt;code&gt;
echo roundnum(200, 9); // outputs 198 but shouldn't it round to the nearest 9 (in this case 199)?
&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p>Sorry the last comment got messed up by the php tags.</p>
<div class="codesnip-container" >echo roundnum(200, 9); // outputs 198 but shouldn&#8217;t it round to the nearest 9 (in this case 199)?</div>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mark</title>
		<link>http://www.markblah.com/2008/05/11/php-round-number-to-nearest-x/#comment-3</link>
		<dc:creator>Mark</dc:creator>
		<pubDate>Mon, 12 May 2008 20:49:16 +0000</pubDate>
		<guid isPermaLink="false">http://www.markblah.com/?p=10#comment-3</guid>
		<description>Thanks for the reply, 

# php ./test.php
123

this is the problem that I was having, unfortunately all built in functions call to the closest integer.</description>
		<content:encoded><![CDATA[<p>Thanks for the reply, </p>
<p># php ./test.php<br />
123</p>
<p>this is the problem that I was having, unfortunately all built in functions call to the closest integer.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: d3x</title>
		<link>http://www.markblah.com/2008/05/11/php-round-number-to-nearest-x/#comment-2</link>
		<dc:creator>d3x</dc:creator>
		<pubDate>Mon, 12 May 2008 09:32:39 +0000</pubDate>
		<guid isPermaLink="false">http://www.markblah.com/?p=10#comment-2</guid>
		<description>How about:

&lt;code&gt;
function roundnum($num, $nearest){
return (ceil($num) / $nearest) * $nearest;
}
&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p>How about:</p>
<div class="codesnip-container" >function roundnum($num, $nearest){<br />
return (ceil($num) / $nearest) * $nearest;<br />
}</div>
]]></content:encoded>
	</item>
</channel>
</rss>
