Convert.ToSingle Method (String)
Converts the specified string representation of a number to an equivalent single-precision floating-point number.
Assembly: mscorlib (in mscorlib.dll)
Using the Single.Parse(String) method. value is interpreted by using the formatting conventions of the current thread culture.method is equivalent to passing value to the
If you prefer not to handle an exception if the conversion fails, you can call the Single.TryParse method instead. It returns a Boolean value that indicates whether the conversion succeeded or failed.
Available since 4.5
Available since 1.1
Portable Class Library
Supported in: portable .NET platforms
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Available since 8.1