using System;
using System.Globalization;
public class MainClass
{
public static void Main()
{
double value;
value = 1.2;
Console.WriteLine(value.ToString("0.00", CultureInfo.InvariantCulture));
Console.WriteLine(value.ToString("00.00", CultureInfo.InvariantCulture));
Console.WriteLine(value.ToString("00.00", CultureInfo.CreateSpecificCulture("da-DK")));
value = .086;
Console.WriteLine(value.ToString("#0.##%", CultureInfo.InvariantCulture));
value = 86000;
Console.WriteLine(value.ToString("0.###E+0", CultureInfo.InvariantCulture));
}
}
/*
1.20
01.20
01,20
8.6%
8.6E+4
*/