语言

Half.HalfToShortBits(Int16) 方法

定义

根据上述 Half位布局返回指定半精度浮点值的表示形式。

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

参数

h
Int16

半精度浮点值

返回

表示半精度浮点值的位

特性

注解

根据上述 Half位布局返回指定半精度浮点值的表示形式。

与 #halfToIntBits(short)此方法类似,此方法将所有可能的 Not-a-Number 值折叠为定义的 #NaN单个规范 Not-a-Number 值。

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

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

适用于