Numeric Formatting:Custom Format Strings:Digit or Zero Placeholder
using System; public class DigitorZeroPlaceholder { public static void Main() { Console.WriteLine("{0:000}", 55); Console.WriteLine("{0:000}", 1456); } }