Use current culture to format currency : Culture Format : I18N Internationalization C# Examples


C# Examples » I18N Internationalization » Culture Format »

 

Use current culture to format currency









    
using  System;
using  System.Globalization;
using  System.Windows.Forms;

public  class  MainClass
{
        static  void  Main()  {
                CultureInfo  current    =  CultureInfo.CurrentCulture;

                double  money  =  123.45;

                string  localMoney  =  money.ToString(  "C",  current  );
                MessageBox.Show(  localMoney,  "Local  Money"  );

        }
}
    
   
  
   




HTML code for linking to this page:

Follow Navioo On Twitter

C# Examples

 Navioo I18N Internationalization
» Culture Format