Format float as decimal
using System; class Sample { public static void Main() { Console.WriteLine("(D) Decimal:. . . . . . . . . {0:D}\n" + -123, -123.45f); } }