Set NumberGroupSeparator : NumberFormatInfo : Development Class C# Source Code


Custom Search

C# Source Code » Development Class » NumberFormatInfo »

 

Set NumberGroupSeparator








    

using System.Globalization;
using System;
public class MainClass {
    public static void Main() {

        NumberFormatInfo f = new NumberFormatInfo();
        f.NumberGroupSeparator = " ";
        Console.WriteLine(12345.6789.ToString("N3", f));   // 12 345.679
    }
}
           
       
    
   
  
   







HTML code for linking to this page:

Follow Navioo On Twitter

C# Source Code

 Navioo Development Class
» NumberFormatInfo