Condividi tramite


Half.HalfToIntBits(Int16) Method

Definition

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

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

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.

Unlike #halfToRawIntBits(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.halfToIntBits(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