Half.ParseHalf(String) Method

Definition

Returns the half-precision float value represented by the specified string.

[Android.Runtime.Register("parseHalf", "(Ljava/lang/String;)S", "", ApiSince=26)]
public static short ParseHalf (string s);
[<Android.Runtime.Register("parseHalf", "(Ljava/lang/String;)S", "", ApiSince=26)>]
static member ParseHalf : string -> int16

Parameters

s
String

The string to be parsed

Returns

A half-precision float value represented by the string

Attributes

Remarks

Returns the half-precision float value represented by the specified string. Calling this method is equivalent to calling toHalf(Float.parseString(h)). See Float#valueOf(String) for more information on the format of the string representation.

Java documentation for android.util.Half.parseHalf(java.lang.String).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to