StringExtensions.AsFloat Method

Definition

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.

Applies to

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

The value to convert.

Returns

The converted value.

Applies to