Numeric Formatting:Custom Format Strings:Decimal Point : Number Format « Development Class « C# / C Sharp
- C# / C Sharp
- Development Class
- Number Format
Numeric Formatting:Custom Format Strings:Decimal Point

using System;
public class DecimalPoint
{
public static void Main()
{
Console.WriteLine("{0:#####.000}", 75928.3);
Console.WriteLine("{0:##.000}", 1456.456456);
}
}
Related examples in the same category