Class Sample
Public Shared Sub Main()
Dim numbers() As Single = { Single.MinValue, -1.351, -17.45, -3e-16,0, 4.56e-12, Single.MaxValue }
Dim result As String
For Each number As Single In numbers
result = Convert.ToString(number)
Console.WriteLine("Converted the {0} value {1} to the {2} value {3}.", _
number.GetType().Name, number, _
result.GetType().Name, result)
Next
End Sub
End Class