Table of Contents

Method HalfToUInt16Bits

Namespace
Zyl.VectorTraits
Assembly
VectorTraits.dll

HalfToUInt16Bits(Half)

Converts a half-precision floating-point value into a 16-bit unsigned integer (将指定的半精度浮点数转换为 16 位无符号整数).

[CLSCompliant(false)]
public static ushort HalfToUInt16Bits(Half value)

Parameters

value Half

The number to convert (欲转换的值).

Returns

ushort

A 16-bit integer whose bits are identical to value (一个16位无符号整数,表示转换的半精度浮点值).