How to format Number to Currency in C# ?
Below is a sample sourcecode that demonstrates on how to format Number to Currency in C#.
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApplication1 { class Program { //AC - How to format Number to Currency in C# static void Main(string[] args) { Console.WriteLine("AbundantCode developer's expense {0:C}", 50500.50); Console.Read(); } } }
1 Comment