Float.Float16ToFloat(Int16) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
{ }
[Android.Runtime.Register("float16ToFloat", "(S)F", "", ApiSince=36)]
public static float Float16ToFloat(short floatBinary16);
[<Android.Runtime.Register("float16ToFloat", "(S)F", "", ApiSince=36)>]
static member Float16ToFloat : int16 -> single
参数
- floatBinary16
- Int16
要转换为的 binary16 值 float
返回
最float接近参数数值的值,在 } 中short编码的浮点二进制 16 值是确切的;所有 binary16 值都可以精确表示。float
Special cases:
<ul>
<li> If the argument is zero, the result is a zero with the
same sign as the argument.
<li> If the argument is infinite, the result is an infinity
with the same sign as the argument.
<li> If the argument is a NaN, the result is a NaN.
</ul>
<h4>binary16Format>IEEE 754 binary16 format</h4>
The IEEE 754 standard defines binary16 as a 16-bit format, along
with the 32-bit binary32 format (corresponding to the <code data-dev-comment-type="c">float</code> type) and the 64-bit binary64 format (corresponding to
the <code data-dev-comment-type="c">double</code> type). The binary16 format is similar to the
other IEEE 754 formats, except smaller, having all the usual
IEEE 754 values such as NaN, signed infinities, signed zeros,
and subnormals. The parameters (JLS {
- 属性
注解
{ }
已在 20 中添加。
适用于 . 的 java.lang.Float.float16ToFloat(short)Java 文档
本页的某些部分是根据 Android 开放源代码项目创建和共享的工作进行的修改,并根据 Creative Commons 2.5 属性许可证中所述的术语使用。