Numeric Formatting:Custom Format Strings:Digit or Zero Placeholder : Number Format « Development Class « C# / C Sharp
- C# / C Sharp
- Development Class
- Number Format
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);
}
}
Related examples in the same category