Get numeric formatting info from a CultureInfo : Culture Format : I18N Internationalization C# Examples


C# Examples » I18N Internationalization » Culture Format »

 

Get numeric formatting info from a CultureInfo









    
using  System;
using  System.Globalization;

class  MainClass
{
    public  static  void  Main()  
    {
        CultureInfo  ci  =  new  CultureInfo("nl-BE");

        NumberFormatInfo  nfi  =  ci.NumberFormat;
        Console.WriteLine("Currency  symbol:  "  +  nfi.CurrencySymbol);
        Console.WriteLine("Decimal  seperator:  "  +  nfi.NumberDecimalSeparator);
    }

}
    
   
  
   



Output

Currency symbol: 
Decimal seperator: ,


HTML code for linking to this page:

Follow Navioo On Twitter

C# Examples

 Navioo I18N Internationalization
» Culture Format