语言

Half.HalfToIntBits(Int16) 方法

定义

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

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

参数

h
Int16

半精度浮点值

返回

表示半精度浮点值的位

特性

注解

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

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

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

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

适用于