Numeric Formatting:Custom Format Strings:Digit or Space Placeholder : Number Format « Development Class « C# / C Sharp
- C# / C Sharp
- Development Class
- Number Format
Numeric Formatting:Custom Format Strings:Digit or Space Placeholder

using System;
public class DigitorSpacePlaceholder
{
public static void Main()
{
Console.WriteLine("{0:#####}", 255);
Console.WriteLine("{0:#####}", 1456);
Console.WriteLine("{0:###}", 32767);
}
}
Related examples in the same category