<?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: Formatting a Decimal Number to 2 Decimal Places in Java or JSP</title>
	<atom:link href="http://www.alvinpoh.com/formatting-a-decimal-number-to-2-decimal-places-in-java-or-jsp/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.alvinpoh.com/formatting-a-decimal-number-to-2-decimal-places-in-java-or-jsp/</link>
	<description></description>
	<lastBuildDate>Tue, 31 Jan 2012 21:55:18 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: Alvin</title>
		<link>http://www.alvinpoh.com/formatting-a-decimal-number-to-2-decimal-places-in-java-or-jsp/comment-page-1/#comment-1297</link>
		<dc:creator>Alvin</dc:creator>
		<pubDate>Tue, 04 Aug 2009 05:01:37 +0000</pubDate>
		<guid isPermaLink="false">http://www.alvinpoh.com/2007/10/02/formatting-a-decimal-number-to-2-decimal-places-in-java-or-jsp/#comment-1297</guid>
		<description>To properly format a number with the comma separator (usually for thousands like you&#039;ve mentioned), try this:

System.out.printf( &quot;%,.2f&quot;, 12345678.9 );

It returns 12,345,678.90</description>
		<content:encoded><![CDATA[<p>To properly format a number with the comma separator (usually for thousands like you&#8217;ve mentioned), try this:</p>
<p>System.out.printf( &#8220;%,.2f&#8221;, 12345678.9 );</p>
<p>It returns 12,345,678.90</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jaffer</title>
		<link>http://www.alvinpoh.com/formatting-a-decimal-number-to-2-decimal-places-in-java-or-jsp/comment-page-1/#comment-1296</link>
		<dc:creator>Jaffer</dc:creator>
		<pubDate>Tue, 04 Aug 2009 04:51:49 +0000</pubDate>
		<guid isPermaLink="false">http://www.alvinpoh.com/2007/10/02/formatting-a-decimal-number-to-2-decimal-places-in-java-or-jsp/#comment-1296</guid>
		<description>Hi Sir,
I want to format a number in JSP
Ex: if i have 10000 it should be displayed with number format as 10,000 and if its 1000000 it should be seperated by commas(,) as 1,00,000
Pl mail me as soon as possible
Regards
Jaffer</description>
		<content:encoded><![CDATA[<p>Hi Sir,<br />
I want to format a number in JSP<br />
Ex: if i have 10000 it should be displayed with number format as 10,000 and if its 1000000 it should be seperated by commas(,) as 1,00,000<br />
Pl mail me as soon as possible<br />
Regards<br />
Jaffer</p>
]]></content:encoded>
	</item>
</channel>
</rss>

