<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>Tech-Recipes - Latest Comments in Java: Decimal Format to Easily Create Custom Output</title><link>http://tech-recipes.disqus.com/</link><description>Cookbook of Tech Tutorials</description><atom:link href="https://tech-recipes.disqus.com/java_decimal_format_to_easily_create_custom_output_java_programming_tech_recipes/latest.rss" rel="self"></atom:link><language>en</language><lastBuildDate>Fri, 27 May 2011 11:16:59 -0000</lastBuildDate><item><title>Re: Java: Decimal Format to Easily Create Custom Output</title><link>http://www.tech-recipes.com/rx/1326/java-decimal-format-to-easily-create-custom-output/#comment-212811260</link><description>&lt;p&gt;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.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Boyu_y</dc:creator><pubDate>Fri, 27 May 2011 11:16:59 -0000</pubDate></item><item><title>Re: Java: Decimal Format to Easily Create Custom Output</title><link>http://www.tech-recipes.com/rx/1326/java-decimal-format-to-easily-create-custom-output/#comment-135860604</link><description>&lt;p&gt;Hi&lt;/p&gt;&lt;p&gt;DecimalFormat formatter = new DecimalFormat("#,##,##,##0.00");&lt;br&gt;double num = 1212245.67;&lt;br&gt;System.out.println(formatter.format(num));&lt;/p&gt;&lt;p&gt;The above code is showing as 1,212,245.67, but it should be 12,12,245.67&lt;/p&gt;&lt;p&gt;Anybody please help me with correct code.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">YSReddy</dc:creator><pubDate>Fri, 28 Jan 2011 02:27:23 -0000</pubDate></item><item><title>Re: Java: Decimal Format to Easily Create Custom Output</title><link>http://www.tech-recipes.com/rx/1326/java-decimal-format-to-easily-create-custom-output/#comment-131348362</link><description>&lt;p&gt;Hi, this example works in Windows environment, but when we deploy in the unix environment, we doesn't get $ symbol ... can anyone explain me ... &lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Piranha Urs</dc:creator><pubDate>Wed, 19 Jan 2011 10:51:08 -0000</pubDate></item><item><title>Re: Java: Decimal Format to Easily Create Custom Output</title><link>http://www.tech-recipes.com/rx/1326/java-decimal-format-to-easily-create-custom-output/#comment-100080807</link><description>&lt;p&gt;how to use that DecimalFormat in a static method ?&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">t4thilina</dc:creator><pubDate>Sat, 20 Nov 2010 11:52:56 -0000</pubDate></item><item><title>Re: Java: Decimal Format to Easily Create Custom Output</title><link>http://www.tech-recipes.com/rx/1326/java-decimal-format-to-easily-create-custom-output/#comment-82051874</link><description>&lt;p&gt;Thank you very much...it help me a lot&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Kainthalwayswin</dc:creator><pubDate>Wed, 29 Sep 2010 13:50:39 -0000</pubDate></item><item><title>Re: Java: Decimal Format to Easily Create Custom Output</title><link>http://www.tech-recipes.com/rx/1326/java-decimal-format-to-easily-create-custom-output/#comment-80378520</link><description>&lt;p&gt;Thanks guy. you made my highschool comp sci easier&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">PeterWadethespider</dc:creator><pubDate>Thu, 23 Sep 2010 15:50:41 -0000</pubDate></item><item><title>Re: Java: Decimal Format to Easily Create Custom Output</title><link>http://www.tech-recipes.com/rx/1326/java-decimal-format-to-easily-create-custom-output/#comment-78398375</link><description>&lt;p&gt;Made Java formula precise....thank you&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Nvehmann</dc:creator><pubDate>Fri, 17 Sep 2010 00:13:59 -0000</pubDate></item><item><title>Re: Java: Decimal Format to Easily Create Custom Output</title><link>http://www.tech-recipes.com/rx/1326/java-decimal-format-to-easily-create-custom-output/#comment-74332469</link><description>&lt;p&gt;#java #programming number-formatting made simple&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">kibernick</dc:creator><pubDate>Thu, 02 Sep 2010 14:37:50 -0000</pubDate></item><item><title>Re: Java: Decimal Format to Easily Create Custom Output</title><link>http://www.tech-recipes.com/rx/1326/java-decimal-format-to-easily-create-custom-output/#comment-12566532</link><description>&lt;p&gt;it's helpful. thank you&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">deta</dc:creator><pubDate>Mon, 13 Jul 2009 03:25:18 -0000</pubDate></item><item><title>Re: Java: Decimal Format to Easily Create Custom Output</title><link>http://www.tech-recipes.com/rx/1326/java-decimal-format-to-easily-create-custom-output/#comment-8913127</link><description>&lt;p&gt;wow..that was so simple...and easy to undastand...&lt;br&gt;thanks..&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Deepesh Kapadia</dc:creator><pubDate>Fri, 01 May 2009 21:40:19 -0000</pubDate></item><item><title>Re: Java: Decimal Format to Easily Create Custom Output</title><link>http://www.tech-recipes.com/rx/1326/java-decimal-format-to-easily-create-custom-output/#comment-6942591</link><description>&lt;p&gt;helpful and concise. :) . nice job.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Zhen Dong</dc:creator><pubDate>Fri, 06 Mar 2009 08:22:29 -0000</pubDate></item><item><title>Re: Java: Decimal Format to Easily Create Custom Output</title><link>http://www.tech-recipes.com/rx/1326/java-decimal-format-to-easily-create-custom-output/#comment-5633644</link><description>&lt;p&gt;Thank you William, this was exceptionally helpful.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Iridium</dc:creator><pubDate>Wed, 28 Jan 2009 20:29:49 -0000</pubDate></item></channel></rss>