<?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: Format Currency in Javascript (simplified)</title>
	<atom:link href="http://www.selfcontained.us/2008/04/22/format-currency-in-javascript-simplified/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.selfcontained.us/2008/04/22/format-currency-in-javascript-simplified/</link>
	<description>web-development</description>
	<lastBuildDate>Wed, 14 Jul 2010 16:05:17 +0000</lastBuildDate>
	
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: oscar B</title>
		<link>http://www.selfcontained.us/2008/04/22/format-currency-in-javascript-simplified/comment-page-1/#comment-34709</link>
		<dc:creator>oscar B</dc:creator>
		<pubDate>Mon, 21 Jun 2010 22:43:50 +0000</pubDate>
		<guid isPermaLink="false">http://www.selfcontained.us/?p=58#comment-34709</guid>
		<description>thanks it was very helpful in my case for a big nice project =)</description>
		<content:encoded><![CDATA[<p>thanks it was very helpful in my case for a big nice project =)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Behtash Moradi</title>
		<link>http://www.selfcontained.us/2008/04/22/format-currency-in-javascript-simplified/comment-page-1/#comment-34665</link>
		<dc:creator>Behtash Moradi</dc:creator>
		<pubDate>Tue, 15 Jun 2010 10:43:21 +0000</pubDate>
		<guid isPermaLink="false">http://www.selfcontained.us/?p=58#comment-34665</guid>
		<description>Thanks, it is very good article</description>
		<content:encoded><![CDATA[<p>Thanks, it is very good article</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alfabravo</title>
		<link>http://www.selfcontained.us/2008/04/22/format-currency-in-javascript-simplified/comment-page-1/#comment-22938</link>
		<dc:creator>Alfabravo</dc:creator>
		<pubDate>Mon, 23 Nov 2009 22:04:43 +0000</pubDate>
		<guid isPermaLink="false">http://www.selfcontained.us/?p=58#comment-22938</guid>
		<description>Nice. Thanks</description>
		<content:encoded><![CDATA[<p>Nice. Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Wes Davis</title>
		<link>http://www.selfcontained.us/2008/04/22/format-currency-in-javascript-simplified/comment-page-1/#comment-22904</link>
		<dc:creator>Wes Davis</dc:creator>
		<pubDate>Sun, 22 Nov 2009 01:00:24 +0000</pubDate>
		<guid isPermaLink="false">http://www.selfcontained.us/?p=58#comment-22904</guid>
		<description>I am wondering if anyone can tell me where the function submitted by Alex G aboce would be included?</description>
		<content:encoded><![CDATA[<p>I am wondering if anyone can tell me where the function submitted by Alex G aboce would be included?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ritalin adult depression.</title>
		<link>http://www.selfcontained.us/2008/04/22/format-currency-in-javascript-simplified/comment-page-1/#comment-22806</link>
		<dc:creator>Ritalin adult depression.</dc:creator>
		<pubDate>Sun, 15 Nov 2009 22:53:34 +0000</pubDate>
		<guid isPermaLink="false">http://www.selfcontained.us/?p=58#comment-22806</guid>
		<description>&lt;strong&gt;Ritalin its side effects....&lt;/strong&gt;

Ritalin. Ritalin as an appetite stimulant....</description>
		<content:encoded><![CDATA[<p><strong>Ritalin its side effects&#8230;.</strong></p>
<p>Ritalin. Ritalin as an appetite stimulant&#8230;.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: alardia</title>
		<link>http://www.selfcontained.us/2008/04/22/format-currency-in-javascript-simplified/comment-page-1/#comment-22704</link>
		<dc:creator>alardia</dc:creator>
		<pubDate>Tue, 10 Nov 2009 03:25:29 +0000</pubDate>
		<guid isPermaLink="false">http://www.selfcontained.us/?p=58#comment-22704</guid>
		<description>Thank you, very well. buy nolvadex low cost  http://www.stumbleupon.com/stumbler/med-brother/ buy nolvadex drug  Many thanks.

I&#039;m glad to see you! buy clenbuterol nolvadex online  &lt;a href=&quot;http://www.stumbleupon.com/stumbler/med-brother/&quot; rel=&quot;nofollow&quot;&gt;buy nolvadex liquid
&lt;/a&gt; buy clenbuterol nolvadex online  Thank you very much.</description>
		<content:encoded><![CDATA[<p>Thank you, very well. buy nolvadex low cost  <a href="http://www.stumbleupon.com/stumbler/med-brother/" rel="nofollow">http://www.stumbleupon.com/stumbler/med-brother/</a> buy nolvadex drug  Many thanks.</p>
<p>I&#8217;m glad to see you! buy clenbuterol nolvadex online  <a href="http://www.stumbleupon.com/stumbler/med-brother/" rel="nofollow">buy nolvadex liquid<br />
</a> buy clenbuterol nolvadex online  Thank you very much.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gary Wong</title>
		<link>http://www.selfcontained.us/2008/04/22/format-currency-in-javascript-simplified/comment-page-1/#comment-22276</link>
		<dc:creator>Gary Wong</dc:creator>
		<pubDate>Tue, 06 Oct 2009 02:39:02 +0000</pubDate>
		<guid isPermaLink="false">http://www.selfcontained.us/?p=58#comment-22276</guid>
		<description>Thanks Mate. You are genius</description>
		<content:encoded><![CDATA[<p>Thanks Mate. You are genius</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Joyce</title>
		<link>http://www.selfcontained.us/2008/04/22/format-currency-in-javascript-simplified/comment-page-1/#comment-21980</link>
		<dc:creator>Joyce</dc:creator>
		<pubDate>Thu, 10 Sep 2009 14:13:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.selfcontained.us/?p=58#comment-21980</guid>
		<description>I was able to use your JS currency function in a project at work. Your work is interesting. Thanks for sharing :) Hope I may be able to reciprocate somehow, someday. Nice to have the option to use tags in the comments section.</description>
		<content:encoded><![CDATA[<p>I was able to use your JS currency function in a project at work. Your work is interesting. Thanks for sharing <img src='http://www.selfcontained.us/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  Hope I may be able to reciprocate somehow, someday. Nice to have the option to use tags in the comments section.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alex G</title>
		<link>http://www.selfcontained.us/2008/04/22/format-currency-in-javascript-simplified/comment-page-1/#comment-19758</link>
		<dc:creator>Alex G</dc:creator>
		<pubDate>Fri, 01 May 2009 18:09:18 +0000</pubDate>
		<guid isPermaLink="false">http://www.selfcontained.us/?p=58#comment-19758</guid>
		<description>The COMMA, also MINUS and DOLLAR sign, and a few more details....


	function formatCurrency(num) {
		num = num.toString().replace(/\$&#124;\,/g, &#039;&#039;);
		if (isNaN(num)) num = &quot;0&quot;;
		sign = (num == (num = Math.abs(num)));
		num = Math.floor(num * 100 + 0.50000000001);
		cents = num % 100;
		num = Math.floor(num / 100).toString();
		if (cents &lt; 10) cents = &quot;0&quot; + cents;
		for (var i = 0; i &lt; Math.floor((num.length - (1 + i)) / 3); i++)
			num = num.substring(0, num.length - (4 * i + 3)) + &#039;,&#039; + num.substring(num.length - (4 * i + 3));
		return (((sign) ? &#039;&#039; : &#039;-&#039;) + &#039;$&#039; + num + &#039;.&#039; + cents);
	}</description>
		<content:encoded><![CDATA[<p>The COMMA, also MINUS and DOLLAR sign, and a few more details&#8230;.</p>
<p>	function formatCurrency(num) {<br />
		num = num.toString().replace(/\$|\,/g, &#8221;);<br />
		if (isNaN(num)) num = &#8220;0&#8243;;<br />
		sign = (num == (num = Math.abs(num)));<br />
		num = Math.floor(num * 100 + 0.50000000001);<br />
		cents = num % 100;<br />
		num = Math.floor(num / 100).toString();<br />
		if (cents &lt; 10) cents = &#8220;0&#8243; + cents;<br />
		for (var i = 0; i &lt; Math.floor((num.length &#8211; (1 + i)) / 3); i++)<br />
			num = num.substring(0, num.length &#8211; (4 * i + 3)) + &#8216;,&#8217; + num.substring(num.length &#8211; (4 * i + 3));<br />
		return (((sign) ? &#8221; : &#8216;-&#8217;) + &#8216;$&#8217; + num + &#8216;.&#8217; + cents);<br />
	}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: anibal</title>
		<link>http://www.selfcontained.us/2008/04/22/format-currency-in-javascript-simplified/comment-page-1/#comment-17493</link>
		<dc:creator>anibal</dc:creator>
		<pubDate>Mon, 09 Feb 2009 20:51:53 +0000</pubDate>
		<guid isPermaLink="false">http://www.selfcontained.us/?p=58#comment-17493</guid>
		<description>Where &lt;b&gt;IS&lt;/b&gt; the &lt;b&gt;comma&lt;/b&gt;?
$ 1&lt;b&gt;,&lt;/b&gt;000.00</description>
		<content:encoded><![CDATA[<p>Where <b>IS</b> the <b>comma</b>?<br />
$ 1<b>,</b>000.00</p>
]]></content:encoded>
	</item>
</channel>
</rss>
