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