<?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: Java: Decimal Format to Easily Create Custom Output</title>
	<atom:link href="http://www.tech-recipes.com/rx/1326/java-decimal-format-to-easily-create-custom-output/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.tech-recipes.com/rx/1326/java-decimal-format-to-easily-create-custom-output/</link>
	<description>Computer and technology tutorials and guides</description>
	<lastBuildDate>Fri, 10 Feb 2012 12:22:53 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Matt</title>
		<link>http://www.tech-recipes.com/rx/1326/java-decimal-format-to-easily-create-custom-output/comment-page-1/#comment-51800</link>
		<dc:creator>Matt</dc:creator>
		<pubDate>Sat, 19 Nov 2011 05:09:12 +0000</pubDate>
		<guid isPermaLink="false">guid-fix-me!#comment-51800</guid>
		<description>Awesome!  Thanks for making this so clear.  The other examples I found online confused the issue with a lot of unnecessary code.  Simple is better for a Java noob like me.</description>
		<content:encoded><![CDATA[<p>Awesome!  Thanks for making this so clear.  The other examples I found online confused the issue with a lot of unnecessary code.  Simple is better for a Java noob like me.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: will pham</title>
		<link>http://www.tech-recipes.com/rx/1326/java-decimal-format-to-easily-create-custom-output/comment-page-1/#comment-50809</link>
		<dc:creator>will pham</dc:creator>
		<pubDate>Thu, 20 Oct 2011 17:45:40 +0000</pubDate>
		<guid isPermaLink="false">guid-fix-me!#comment-50809</guid>
		<description>how do i print 1, 2, 3, ......, 8, 9. as 01, 02, 03, ......, 08, 09
i have an array of size 10.  myArray[10]
so far i have
for(int i = 0; i</description>
		<content:encoded><![CDATA[<p>how do i print 1, 2, 3, &#8230;&#8230;, 8, 9. as 01, 02, 03, &#8230;&#8230;, 08, 09<br />
i have an array of size 10.  myArray[10]<br />
so far i have<br />
for(int i = 0; i</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Boyu_y</title>
		<link>http://www.tech-recipes.com/rx/1326/java-decimal-format-to-easily-create-custom-output/comment-page-1/#comment-48608</link>
		<dc:creator>Boyu_y</dc:creator>
		<pubDate>Fri, 27 May 2011 15:16:00 +0000</pubDate>
		<guid isPermaLink="false">guid-fix-me!#comment-48608</guid>
		<description>The first comma to decimal point is 3 digits, so 1,212,245.67 is the correct result, if you change the pattern to #,##,##,##.00, the output should be 1,21,22,45.67. The number is always divided in equal size.</description>
		<content:encoded><![CDATA[<p>The first comma to decimal point is 3 digits, so 1,212,245.67 is the correct result, if you change the pattern to #,##,##,##.00, the output should be 1,21,22,45.67. The number is always divided in equal size.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: YSReddy</title>
		<link>http://www.tech-recipes.com/rx/1326/java-decimal-format-to-easily-create-custom-output/comment-page-1/#comment-45919</link>
		<dc:creator>YSReddy</dc:creator>
		<pubDate>Fri, 28 Jan 2011 07:27:00 +0000</pubDate>
		<guid isPermaLink="false">guid-fix-me!#comment-45919</guid>
		<description>Hi

DecimalFormat formatter = new DecimalFormat(&quot;#,##,##,##0.00&quot;);
double num = 1212245.67;
System.out.println(formatter.format(num));

The above code is showing as 1,212,245.67, but it should be 12,12,245.67

Anybody please help me with correct code.</description>
		<content:encoded><![CDATA[<p>Hi</p>
<p>DecimalFormat formatter = new DecimalFormat(&#8220;#,##,##,##0.00&#8243;);<br />
double num = 1212245.67;<br />
System.out.println(formatter.format(num));</p>
<p>The above code is showing as 1,212,245.67, but it should be 12,12,245.67</p>
<p>Anybody please help me with correct code.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Piranha Urs</title>
		<link>http://www.tech-recipes.com/rx/1326/java-decimal-format-to-easily-create-custom-output/comment-page-1/#comment-45674</link>
		<dc:creator>Piranha Urs</dc:creator>
		<pubDate>Wed, 19 Jan 2011 15:51:00 +0000</pubDate>
		<guid isPermaLink="false">guid-fix-me!#comment-45674</guid>
		<description>Hi, this example works in Windows environment, but when we deploy in the unix environment, we doesn&#039;t get $ symbol ... can anyone explain me ... </description>
		<content:encoded><![CDATA[<p>Hi, this example works in Windows environment, but when we deploy in the unix environment, we doesn&#8217;t get $ symbol &#8230; can anyone explain me &#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: t4thilina</title>
		<link>http://www.tech-recipes.com/rx/1326/java-decimal-format-to-easily-create-custom-output/comment-page-1/#comment-44112</link>
		<dc:creator>t4thilina</dc:creator>
		<pubDate>Sat, 20 Nov 2010 16:52:00 +0000</pubDate>
		<guid isPermaLink="false">guid-fix-me!#comment-44112</guid>
		<description>how to use that DecimalFormat in a static method ?</description>
		<content:encoded><![CDATA[<p>how to use that DecimalFormat in a static method ?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kainthalwayswin</title>
		<link>http://www.tech-recipes.com/rx/1326/java-decimal-format-to-easily-create-custom-output/comment-page-1/#comment-42762</link>
		<dc:creator>Kainthalwayswin</dc:creator>
		<pubDate>Wed, 29 Sep 2010 17:50:00 +0000</pubDate>
		<guid isPermaLink="false">guid-fix-me!#comment-42762</guid>
		<description>Thank you very much...it help me a lot</description>
		<content:encoded><![CDATA[<p>Thank you very much&#8230;it help me a lot</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: PeterWadethespider</title>
		<link>http://www.tech-recipes.com/rx/1326/java-decimal-format-to-easily-create-custom-output/comment-page-1/#comment-42623</link>
		<dc:creator>PeterWadethespider</dc:creator>
		<pubDate>Thu, 23 Sep 2010 19:50:00 +0000</pubDate>
		<guid isPermaLink="false">guid-fix-me!#comment-42623</guid>
		<description>Thanks guy. you made my highschool comp sci easier</description>
		<content:encoded><![CDATA[<p>Thanks guy. you made my highschool comp sci easier</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nvehmann</title>
		<link>http://www.tech-recipes.com/rx/1326/java-decimal-format-to-easily-create-custom-output/comment-page-1/#comment-42454</link>
		<dc:creator>Nvehmann</dc:creator>
		<pubDate>Fri, 17 Sep 2010 04:13:00 +0000</pubDate>
		<guid isPermaLink="false">guid-fix-me!#comment-42454</guid>
		<description>Made Java formula precise....thank you</description>
		<content:encoded><![CDATA[<p>Made Java formula precise&#8230;.thank you</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anonymous</title>
		<link>http://www.tech-recipes.com/rx/1326/java-decimal-format-to-easily-create-custom-output/comment-page-1/#comment-42055</link>
		<dc:creator>Anonymous</dc:creator>
		<pubDate>Thu, 02 Sep 2010 18:37:00 +0000</pubDate>
		<guid isPermaLink="false">guid-fix-me!#comment-42055</guid>
		<description>#java #programming number-formatting made simple</description>
		<content:encoded><![CDATA[<p>#java #programming number-formatting made simple</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Page Caching using memcached (User agent is rejected)
Database Caching 2/17 queries in 1.110 seconds using memcached
Object Caching 416/419 objects using memcached

Served from: www.tech-recipes.com @ 2012-02-10 08:08:57 -->
