CultureInfo cultureInfo = new CultureInfo("en-US");
cultureInfo.NumberFormat.CurrencySymbol = "Rs.";
Thread.CurrentThread.CurrentCulture = cultureInfo;
decimal devimalValue = 3.45M;
this.Text = devimalValue.ToString("C2");
Thoughts on C#, .NET, programming, software development and productivity. Tips and tricks to solve various programming problems.
Friday, May 27, 2011
Double to Current format with the currency Symbol
Labels:
.NET Framework
,
C#
Subscribe to:
Post Comments
(
Atom
)
No comments :
Post a Comment