<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
<title>Snipplr - adrianparr</title>
<link>http://snipplr.com/users/adrianparr/tags/Thousands</link>
<description>Recent snippets posted on Snipplr.com</description>
<language>en-us</language>
<pubDate>Wed, 22 May 2013 21:34:43 GMT</pubDate>
<item>
<title>(ActionScript 3) Format a Number to a String - With decimals and thousands separator</title>
<link>http://snipplr.com/view/27081/format-a-number-to-a-string--with-decimals-and-thousands-separator/</link>
<description><![CDATA[ <p>Format a number so it is more humanly readable. It allows for setting the number of decimal places (inc. adding 0000s to the end) and separating thousands with a comma.

Example usage:

trace(numberFormat(1234.695, 2, true, false)); 
// Output: 1,234.70

trace(numberFormat(16000000, 0, false, false)); 
// Output: 16,000,000</p> ]]></description>
<pubDate>Tue, 26 Jan 2010 06:25:12 GMT</pubDate>
<guid>http://snipplr.com/view/27081/format-a-number-to-a-string--with-decimals-and-thousands-separator/</guid>
</item>
</channel>
</rss>