<?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: String Formatting FAQ</title>
	<atom:link href="http://blog.stevex.net/2007/09/string-formatting-faq/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.stevex.net/2007/09/string-formatting-faq/</link>
	<description>Software development and other notes.</description>
	<lastBuildDate>Mon, 08 Mar 2010 08:37:49 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: garry</title>
		<link>http://blog.stevex.net/2007/09/string-formatting-faq/comment-page-1/#comment-582135</link>
		<dc:creator>garry</dc:creator>
		<pubDate>Tue, 13 Oct 2009 15:40:30 +0000</pubDate>
		<guid isPermaLink="false">http://blog.stevex.net/index.php/2007/09/28/string-formatting-faq/#comment-582135</guid>
		<description>Does anyone know a way to introduce scale when using format strings?

e.g if had a string value that was &quot;40092&quot; i could convert this to a decimal using Convert.ToDecimal(string.Format(&quot;{0:#0.00}&quot;, myValue));
this would return the value 40092.00

however, what if i wanted to introduce scale to it?  i.e i would like my returned value to be 400.92.  is there anyway to accomplish this using string.format format string method?</description>
		<content:encoded><![CDATA[<p>Does anyone know a way to introduce scale when using format strings?</p>
<p>e.g if had a string value that was &#8220;40092&#8243; i could convert this to a decimal using Convert.ToDecimal(string.Format(&#8220;{0:#0.00}&#8221;, myValue));<br />
this would return the value 40092.00</p>
<p>however, what if i wanted to introduce scale to it?  i.e i would like my returned value to be 400.92.  is there anyway to accomplish this using string.format format string method?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: String Formatting in C# &#124; Web program resources</title>
		<link>http://blog.stevex.net/2007/09/string-formatting-faq/comment-page-1/#comment-581586</link>
		<dc:creator>String Formatting in C# &#124; Web program resources</dc:creator>
		<pubDate>Thu, 08 Oct 2009 01:28:59 +0000</pubDate>
		<guid isPermaLink="false">http://blog.stevex.net/index.php/2007/09/28/string-formatting-faq/#comment-581586</guid>
		<description>[...] formatting using the String.Format() function, so I created this one (which has also spawned this String Formatting FAQ and strangely enough, this [...]</description>
		<content:encoded><![CDATA[<p>[...] formatting using the String.Format() function, so I created this one (which has also spawned this String Formatting FAQ and strangely enough, this [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Foysal</title>
		<link>http://blog.stevex.net/2007/09/string-formatting-faq/comment-page-1/#comment-580367</link>
		<dc:creator>Foysal</dc:creator>
		<pubDate>Tue, 29 Sep 2009 16:35:43 +0000</pubDate>
		<guid isPermaLink="false">http://blog.stevex.net/index.php/2007/09/28/string-formatting-faq/#comment-580367</guid>
		<description>How to do the following formatting:

$1,43,21,000.00</description>
		<content:encoded><![CDATA[<p>How to do the following formatting:</p>
<p>$1,43,21,000.00</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Apeksha</title>
		<link>http://blog.stevex.net/2007/09/string-formatting-faq/comment-page-1/#comment-544495</link>
		<dc:creator>Apeksha</dc:creator>
		<pubDate>Mon, 04 May 2009 17:36:22 +0000</pubDate>
		<guid isPermaLink="false">http://blog.stevex.net/index.php/2007/09/28/string-formatting-faq/#comment-544495</guid>
		<description>Hi,
Could you please show me how to convert a number to string without an exponent?
E.g. 
1) when I execute this: MaxVal=UnsignedLong.MaxValue - 1
I get this - 1.84467440737096E+19
But I want this - 18446744073709551614

2) when I execute this: CDbl(&quot;112345678908765432345345456577.2342&quot;).ToString
I get this - 1.12345678908765E+29
But I want the exact same number


There are many numeric datatypes I am working with here, and also deal with numbers having varying decimals. I would like to write some generic code that can convert a number to string irrespective of the decimal places.

Thanks in advance!</description>
		<content:encoded><![CDATA[<p>Hi,<br />
Could you please show me how to convert a number to string without an exponent?<br />
E.g.<br />
1) when I execute this: MaxVal=UnsignedLong.MaxValue &#8211; 1<br />
I get this &#8211; 1.84467440737096E+19<br />
But I want this &#8211; 18446744073709551614</p>
<p>2) when I execute this: CDbl(&#8220;112345678908765432345345456577.2342&#8243;).ToString<br />
I get this &#8211; 1.12345678908765E+29<br />
But I want the exact same number</p>
<p>There are many numeric datatypes I am working with here, and also deal with numbers having varying decimals. I would like to write some generic code that can convert a number to string irrespective of the decimal places.</p>
<p>Thanks in advance!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: GopiKrishnaReddy.Konda</title>
		<link>http://blog.stevex.net/2007/09/string-formatting-faq/comment-page-1/#comment-514187</link>
		<dc:creator>GopiKrishnaReddy.Konda</dc:creator>
		<pubDate>Tue, 10 Feb 2009 12:00:05 +0000</pubDate>
		<guid isPermaLink="false">http://blog.stevex.net/index.php/2007/09/28/string-formatting-faq/#comment-514187</guid>
		<description>Hi helping hands,

plz tell me the format of displaying a fraction 2 5/10 (2.05 actual value) by using the format as follows
&#039;###,###,###,##0 ##/10&#039;.

plz kindly reply me soon.MAIL me at gopikrishnareddy.konda@gmail.com

regards,
GKR.</description>
		<content:encoded><![CDATA[<p>Hi helping hands,</p>
<p>plz tell me the format of displaying a fraction 2 5/10 (2.05 actual value) by using the format as follows<br />
&#8216;###,###,###,##0 ##/10&#8242;.</p>
<p>plz kindly reply me soon.MAIL me at <a href="mailto:gopikrishnareddy.konda@gmail.com">gopikrishnareddy.konda@gmail.com</a></p>
<p>regards,<br />
GKR.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: String Formatting in C# &#171; Ravi Varma Thumati</title>
		<link>http://blog.stevex.net/2007/09/string-formatting-faq/comment-page-1/#comment-477067</link>
		<dc:creator>String Formatting in C# &#171; Ravi Varma Thumati</dc:creator>
		<pubDate>Fri, 05 Dec 2008 15:01:10 +0000</pubDate>
		<guid isPermaLink="false">http://blog.stevex.net/index.php/2007/09/28/string-formatting-faq/#comment-477067</guid>
		<description>[...] formatting using the String.Format() function, so I created this one (which has also spawned this String Formatting FAQ and strangely enough, this [...]</description>
		<content:encoded><![CDATA[<p>[...] formatting using the String.Format() function, so I created this one (which has also spawned this String Formatting FAQ and strangely enough, this [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ASP.NET - C# - Emulating the VB Control Array - Part 1 &#187; WhyPad</title>
		<link>http://blog.stevex.net/2007/09/string-formatting-faq/comment-page-1/#comment-452947</link>
		<dc:creator>ASP.NET - C# - Emulating the VB Control Array - Part 1 &#187; WhyPad</dc:creator>
		<pubDate>Wed, 29 Oct 2008 18:37:12 +0000</pubDate>
		<guid isPermaLink="false">http://blog.stevex.net/index.php/2007/09/28/string-formatting-faq/#comment-452947</guid>
		<description>[...] to pop the month name in the newly created textboxes.  SteveX has a super helpful reference  and FAQ for string formatting.  Thanks, [...]</description>
		<content:encoded><![CDATA[<p>[...] to pop the month name in the newly created textboxes.  SteveX has a super helpful reference  and FAQ for string formatting.  Thanks, [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Emil</title>
		<link>http://blog.stevex.net/2007/09/string-formatting-faq/comment-page-1/#comment-441735</link>
		<dc:creator>Emil</dc:creator>
		<pubDate>Fri, 10 Oct 2008 13:50:55 +0000</pubDate>
		<guid isPermaLink="false">http://blog.stevex.net/index.php/2007/09/28/string-formatting-faq/#comment-441735</guid>
		<description>How can I convert a percentage back to a number? I&#039;ve tried the obvious bitmapped values from the Globalization.NumberStyles enumeration but no luck... I haven&#039;t tried every one from the list but I thought it is a good question to add to this FAQ list!</description>
		<content:encoded><![CDATA[<p>How can I convert a percentage back to a number? I&#8217;ve tried the obvious bitmapped values from the Globalization.NumberStyles enumeration but no luck&#8230; I haven&#8217;t tried every one from the list but I thought it is a good question to add to this FAQ list!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Braulio</title>
		<link>http://blog.stevex.net/2007/09/string-formatting-faq/comment-page-1/#comment-381100</link>
		<dc:creator>Braulio</dc:creator>
		<pubDate>Thu, 26 Jun 2008 12:21:18 +0000</pubDate>
		<guid isPermaLink="false">http://blog.stevex.net/index.php/2007/09/28/string-formatting-faq/#comment-381100</guid>
		<description>Godd stuff !!

It would be a good idea to extend this FAQ by adding more and more samples :-).


My two cents, I need to format a float with the following format ddd,dd 

         protected string DetailIncurredFormatHourEntryInHHHMM(float currValue)
         {         
             return string.Format(&quot;{0:###,#.00}&quot;, (currValue));
         }</description>
		<content:encoded><![CDATA[<p>Godd stuff !!</p>
<p>It would be a good idea to extend this FAQ by adding more and more samples <img src='http://blog.stevex.net/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> .</p>
<p>My two cents, I need to format a float with the following format ddd,dd </p>
<p>         protected string DetailIncurredFormatHourEntryInHHHMM(float currValue)<br />
         {<br />
             return string.Format(&#8220;{0:###,#.00}&#8221;, (currValue));<br />
         }</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Robot Minds of Robot Slaves &#187; Formatting Numbers as Percents in C#</title>
		<link>http://blog.stevex.net/2007/09/string-formatting-faq/comment-page-1/#comment-256122</link>
		<dc:creator>Robot Minds of Robot Slaves &#187; Formatting Numbers as Percents in C#</dc:creator>
		<pubDate>Thu, 27 Dec 2007 17:10:44 +0000</pubDate>
		<guid isPermaLink="false">http://blog.stevex.net/index.php/2007/09/28/string-formatting-faq/#comment-256122</guid>
		<description>[...] And here is the link to the best info I could find on string formatting. [...]</description>
		<content:encoded><![CDATA[<p>[...] And here is the link to the best info I could find on string formatting. [...]</p>
]]></content:encoded>
	</item>
</channel>
</rss>
