<?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: Calculate a percentage</title>
	<atom:link href="http://www.danielkassner.com/2010/06/04/calculate-a-percentage/feed" rel="self" type="application/rss+xml" />
	<link>http://www.danielkassner.com/2010/06/04/calculate-a-percentage</link>
	<description>Random technology, photos and life</description>
	<lastBuildDate>Fri, 07 Oct 2011 17:09:54 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.4-alpha</generator>
	<item>
		<title>By: GMoney</title>
		<link>http://www.danielkassner.com/2010/06/04/calculate-a-percentage/comment-page-1#comment-26921</link>
		<dc:creator>GMoney</dc:creator>
		<pubDate>Tue, 17 May 2011 21:35:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.danielkassner.com/?p=358#comment-26921</guid>
		<description>whoops..
&lt;code&gt;
function percent($amount,$total,$decimal=0){
    if(0===(int)$total){
        return $total;
    }
    return number_format((((int)$amount/(int)$total)*100),$decimal);
}
&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p>whoops..<br />
<code><br />
function percent($amount,$total,$decimal=0){<br />
    if(0===(int)$total){<br />
        return $total;<br />
    }<br />
    return number_format((((int)$amount/(int)$total)*100),$decimal);<br />
}<br />
</code></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: GMoney</title>
		<link>http://www.danielkassner.com/2010/06/04/calculate-a-percentage/comment-page-1#comment-26920</link>
		<dc:creator>GMoney</dc:creator>
		<pubDate>Tue, 17 May 2011 21:35:10 +0000</pubDate>
		<guid isPermaLink="false">http://www.danielkassner.com/?p=358#comment-26920</guid>
		<description>This is a bit shorter:

</description>
		<content:encoded><![CDATA[<p>This is a bit shorter:</p>
]]></content:encoded>
	</item>
</channel>
</rss>

