Share via


Half.IntBitsToHalf(Int32) Method

Definition

Returns the half-precision float value corresponding to a given bit representation.

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

Parameters

bits
Int32

An integer

Returns

The half-precision float value with the same bit pattern

Attributes

Remarks

Returns the half-precision float value corresponding to a given bit representation.

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 argument are ignored.

Java documentation for android.util.Half.intBitsToHalf(int).

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