Share via


Half.GetSign(Int16) Method

Definition

Returns the sign of the specified half-precision float.

[Android.Runtime.Register("getSign", "(S)I", "", ApiSince=26)]
public static int GetSign (short h);
[<Android.Runtime.Register("getSign", "(S)I", "", ApiSince=26)>]
static member GetSign : int16 -> int

Parameters

h
Int16

A half-precision float value

Returns

1 if the value is positive, -1 if the value is negative

Attributes

Remarks

Returns the sign of the specified half-precision float.

Java documentation for android.util.Half.getSign(short).

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