using System; class Example { public static void Main() { double s1 = 1231234.123412341234; Console.WriteLine("{0:#.###}.", s1); } } 1231234.123.