using System;
using System.Globalization;
public class MainClass
{
public static void Main()
{
double value;
value = 1.2;
Console.WriteLine(value.ToString("#.##", CultureInfo.InvariantCulture));
value = 123;
Console.WriteLine(value.ToString("#####"));
value = 123456;
Console.WriteLine(value.ToString("[##-##-##]"));
value = 1234567890;
Console.WriteLine(value.ToString("#"));
Console.WriteLine(value.ToString("(###) ###-####"));
}
}
/*
1.2
123
[12-34-56]
1234567890
(123) 456-7890
*/