Method HalfToInt16Bits
- Namespace
- Zyl.VectorTraits
- Assembly
- VectorTraits.dll
HalfToInt16Bits(Half)
Converts a half-precision floating-point value into a 16-bit integer (将半精度浮点值转换为 16 位整数).
public static short HalfToInt16Bits(Half value)
Parameters
value
HalfThe number to convert (欲转换的值).
Returns
- short
A 16-bit integer whose bits are identical to value (一个16位整数,表示转换的半精度浮点值).