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


Custom Search

C# Source Code » Data Types » int »

 

Use CultureInfo in int.ToString method








    
 

using System;
using System.Globalization;
public class NumParsingApp {
    public static void Main(string[] args) {

        int k = 12345;
        CultureInfo us = new CultureInfo("en-US");
        string v = k.ToString("c", us);
        Console.WriteLine(v);
    }
}

 
    
   
  
   







HTML code for linking to this page:

Follow Navioo On Twitter

C# Source Code

 Navioo Data Types
» int