Freigeben über


Half.GetExponent(Int16) Method

Definition

Returns the unbiased exponent used in the representation of the specified half-precision float value.

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

Parameters

h
Int16

A half-precision float value

Returns

The unbiased exponent of the specified value

Attributes

Remarks

Returns the unbiased exponent used in the representation of the specified half-precision float value. if the value is NaN or infinite, this* method returns #MAX_EXPONENT + 1. If the argument is 0 or a subnormal representation, this method returns #MIN_EXPONENT - 1.

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