Half.TryParse Method

Definition

Overloads

TryParse(String, Half)

Converts the string representation of a number to a Half precision floating point equivalent. Returns success.

TryParse(String, NumberStyles, IFormatProvider, Half)

Converts the string representation of a number to a Half precision floating point equivalent. Returns success.

TryParse(String, Half)

Converts the string representation of a number to a Half precision floating point equivalent. Returns success.

public static bool TryParse (string s, out OpenTK.Half result);
static member TryParse : string *  -> bool

Parameters

s
String

string representation of the number to convert.

result
Half

The Half instance to write to.

Returns

Success.

Applies to

TryParse(String, NumberStyles, IFormatProvider, Half)

Converts the string representation of a number to a Half precision floating point equivalent. Returns success.

public static bool TryParse (string s, System.Globalization.NumberStyles style, IFormatProvider provider, out OpenTK.Half result);
static member TryParse : string * System.Globalization.NumberStyles * IFormatProvider *  -> bool

Parameters

s
String

string representation of the number to convert.

style
NumberStyles

specifies the format of s.

provider
IFormatProvider

Culture-specific formatting information.

result
Half

The Half instance to write to.

Returns

Success.

Applies to