Mega Code Archive

 
Categories / C# / Data Types
 

Format float point value as fixed point

using System; class Sample  {     public static void Main()      {        Console.WriteLine("(F) Fixed point:. . . . . . . {1:F}\n" + -123, -123.45f);      } }