Half.Trunc(Int16) 方法

定义

返回指定的半精度浮点值的截断的半精度浮点值。

[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 属性许可证中所述的术语使用。

适用于