StringExtensions.AsFloat Method   
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
| AsFloat(String, Single) | 
						 Converts a string to a Single number and specifies a default value.  | 
        	
| AsFloat(String) | 
						 Converts a string to a Single number.  | 
        	
AsFloat(String, Single)
Converts a string to a Single number and specifies a default value.
public static float AsFloat(this string value, float defaultValue);
	static member AsFloat : string * single -> single
	<Extension()>
Public Function AsFloat (value As String, defaultValue As Single) As Single
	Parameters
- value
 - String
 
The value to convert.
- defaultValue
 - Single
 
The value to return if value is null.
Returns
The converted value.