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); } }