Udostępnij za pośrednictwem


Half.HalfToRawIntBits(Int16) Method

Definition

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

[Android.Runtime.Register("halfToRawIntBits", "(S)I", "", ApiSince=26)]
public static int HalfToRawIntBits (short h);
[<Android.Runtime.Register("halfToRawIntBits", "(S)I", "", ApiSince=26)>]
static member HalfToRawIntBits : 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.

The argument is considered to be a representation of a half-precision float value according to the bit layout described in Half. The 16 most significant bits of the returned value are set to 0.

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