Half.HalfToShortBits(Int16) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
根据上述 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)。
本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。