语言

Half.GetExponent(Int16) 方法

定义

返回指定半精度浮点值的表示形式中使用的无偏差指数。

[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

参数

h
Int16

半精度浮点值

返回

指定值的无偏差指数

特性

注解

返回指定半精度浮点值的表示形式中使用的无偏差指数。 如果值为 NaN 或无限值,则此* 方法返回 #MAX_EXPONENT + 1。 如果参数为 0 或非正常表示形式,则此方法返回 #MIN_EXPONENT - 1。

Java文档android.util.Half.getExponent(short)。

本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。

适用于