<?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 Price with ActionScript</title>
	<atom:link href="http://blog.alastairdawson.com/2006/08/06/format-price-with-actionscript/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.alastairdawson.com/2006/08/06/format-price-with-actionscript/</link>
	<description>Let us toast your non-idiocy</description>
	<lastBuildDate>Wed, 20 Jul 2011 10:41:56 -0700</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: yauidea</title>
		<link>http://blog.alastairdawson.com/2006/08/06/format-price-with-actionscript/comment-page-1/#comment-32</link>
		<dc:creator>yauidea</dc:creator>
		<pubDate>Fri, 06 Jun 2008 04:03:02 +0000</pubDate>
		<guid isPermaLink="false">http://blog.vixiom.com/2006/08/06/format-price-with-actionscript/#comment-32</guid>
		<description>your second line may typo

// format price
function formatPrice(orgPrice) {
	orgPriceSpilt = orgPrice.toString();
	orgPriceSpilt = orgPriceSpilt.split(&quot;.&quot;);
	numString = orgPriceSpilt[0];
	newString = &quot;&quot;;
	index = 1;
	trip = 0;
	while (numString.length &gt;= index) {
		if (trip != 3) {
			//haven’t reached 3 chars yet
			newString = numString.charAt(numString.length - index) + newString;
			//add char
			index++;
			trip++;
		}
		else {
			//reached 3 chars, add comma
			newString = &quot;,&quot; + newString;
			trip = 0;
		}
	}
	return (newString);
}</description>
		<content:encoded><![CDATA[<p>your second line may typo</p>
<p>// format price<br />
function formatPrice(orgPrice) {<br />
	orgPriceSpilt = orgPrice.toString();<br />
	orgPriceSpilt = orgPriceSpilt.split(&#8221;.&#8221;);<br />
	numString = orgPriceSpilt[0];<br />
	newString = &#8220;&#8221;;<br />
	index = 1;<br />
	trip = 0;<br />
	while (numString.length &gt;= index) {<br />
		if (trip != 3) {<br />
			//haven’t reached 3 chars yet<br />
			newString = numString.charAt(numString.length &#8211; index) + newString;<br />
			//add char<br />
			index++;<br />
			trip++;<br />
		}<br />
		else {<br />
			//reached 3 chars, add comma<br />
			newString = &#8220;,&#8221; + newString;<br />
			trip = 0;<br />
		}<br />
	}<br />
	return (newString);<br />
}</p>
]]></content:encoded>
	</item>
</channel>
</rss>

