Half.HalfToShortBits(Int16) Method

Definition

Returns a representation of the specified half-precision float value according to the bit layout described in Half.

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

Parameters

h
Int16

A half-precision float value

Returns

The bits that represent the half-precision float value

Attributes

Remarks

Returns a representation of the specified half-precision float value according to the bit layout described in Half.

Similar to #halfToIntBits(short), this method collapses all possible Not-a-Number values to a single canonical Not-a-Number value defined by #NaN.

Java documentation for android.util.Half.halfToShortBits(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