Display value with 3 digits and leading zeros
Class Sample
Public Shared Sub Main()
Dim numbers() As Integer = { -123123, 0, 1, 123123 }
For Each number As Integer In numbers
Console.Write("{0,11:D3}", number)
Next
End Sub
End Class
Related examples in the same category