using System; class MainClass { public static void Main() { try { double d = Double.Parse("1234.1234"); } catch(FormatException exc) { Console.WriteLine(exc.Message); return; } } }