StringExtensions.AsFloat StringExtensions.AsFloat StringExtensions.AsFloat Method

Definition

Overloads

AsFloat(String, Single) AsFloat(String, Single) AsFloat(String, Single)

Converts a string to a Single number and specifies a default value.

AsFloat(String) AsFloat(String) AsFloat(String)

Converts a string to a Single number.

AsFloat(String, Single) AsFloat(String, Single) 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 String String

The value to convert.

defaultValue
Single Single Single

The value to return if value is null.

Returns

The converted value.

AsFloat(String) AsFloat(String) AsFloat(String)

Converts a string to a Single number.

public static float AsFloat (this string value);
static member AsFloat : string -> single
<Extension()>
Public Function AsFloat (value As String) As Single
Parameters
value
String String String

The value to convert.

Returns

The converted value.

Applies to