Numeric Formatting:Custom Format Strings:Section Separator : Number Format « Development Class « C# / C Sharp
- C# / C Sharp
- Development Class
- Number Format
Numeric Formatting:Custom Format Strings:Section Separator

using System;
public class SectionSeparator
{
public static void Main()
{
Console.WriteLine("{0:###.00;0;(###.00)}", -456.55);
Console.WriteLine("{0:###.00;0;(###.00)}", 0);
Console.WriteLine("{0:###.00;0;(###.00)}", 456.55);
}
}
Related examples in the same category