Use CultureInfo int ToString method : int : Data Types C# Source Code


Custom Search

C# Source Code » Data Types » int »

 

Use CultureInfo int ToString method








    



using System;
using System.Globalization;
using System.Threading;

class Program {
    static void Main(string[] args) {
        int val = 1234567890;
        Console.WriteLine(val.ToString("N"));
        Console.WriteLine(val.ToString("N",new CultureInfo("fr-FR")));
        Thread.CurrentThread.CurrentCulture = new CultureInfo("de-DE");
        Console.WriteLine(val.ToString("N"));
    }
}
           
       
    
   
  
   







HTML code for linking to this page:

Follow Navioo On Twitter

C# Source Code

 Navioo Data Types
» int