Half.Trunc(Int16) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
返回指定的半精度浮点值的截断的半精度浮点值。
[Android.Runtime.Register("trunc", "(S)S", "", ApiSince=26)]
public static short Trunc (short h);
[<Android.Runtime.Register("trunc", "(S)S", "", ApiSince=26)>]
static member Trunc : int16 -> int16
参数
- h
- Int16
半精度浮点值
返回
指定的半精度浮点值的截断半精度浮点值
- 属性
注解
返回指定的半精度浮点值的截断的半精度浮点值。 特殊值按以下方式进行处理:ul>li 如果指定的半精度浮点数为 NaN,则结果为 NaN</li>><如果指定的半精度浮点数为无穷大(负或正),则结果为无穷大(同一符号)</li li>><如果指定的半精度浮点数为零(负或正),则结果为零(同一符号)</li<>/ul><<>
适用于 . 的 android.util.Half.trunc(short)
Java 文档
本页的某些部分是根据 Android 开放源代码项目创建和共享的工作进行的修改,并根据 Creative Commons 2.5 属性许可证中所述的术语使用。