Double.ToString(String format, CultureInfo info) : Double « System « C# / C Sharp by API






Double.ToString(String format, CultureInfo info)

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

public class MainClass
{
    static void Main() {
        CultureInfo germany  = new CultureInfo( "de-DE" );

        double money = 123.45;

        string localMoney = money.ToString( "C", germany );
        Console.WriteLine( localMoney );

    }
}

   
    
  








Related examples in the same category

1.Double.Parse
2.Double.ToString(CultureInfo ci)