Translate

Tuesday, March 22, 2011

C# convert string to currency


int i = 100000;
Console.WriteLine(i.ToString("c"));
//Displays $100,000.00

No comments:

Post a Comment

Comments will appear once they have been approved by the moderator