Parse(String) method converts an array of strings to equivalent Single values. : Single « Data Type « VB.Net Tutorial






Module Example
   Public Sub Main()
      Dim values() As String = { "100", "(100)", "-123,456,789", "123.45e+6", _
                                "-Infinity", "-1E-16", Single.MinValue.ToString(), String.Empty }
      For Each value As String In values
         Try   
            Dim number As Single = Single.Parse(value)
            Console.WriteLine("{0} -> {1}", value, number)
         Catch e As FormatException
            Console.WriteLine("'{0}' is not in a valid format.", value)
         Catch e As OverflowException
            Console.WriteLine("{0} is outside the range of a Single.", value)
         End Try
      Next                                  
   End Sub
End Module








2.11.Single
2.11.1.Calculation with Single
2.11.2.Single Double MaxValue and Memory Size
2.11.3.Calcuate Single
2.11.4.Cast Integer to Short, Double to Single
2.11.5.Precision Error
2.11.6.Show difference precision of Single and Double
2.11.7.Pass Single by value and by reference to a Sub
2.11.8.Get Epsilon from Single
2.11.9.Parse(String) method converts an array of strings to equivalent Single values.