Table of Contents

Method UInt16BitsToHalf

Namespace
Zyl.VectorTraits.Numerics
Assembly
VectorTraits.dll

UInt16BitsToHalf(ushort)

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

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

Parameters

value ushort

The 16-bit unsigned integer value to convert (欲转换的16位无符号整数值).

Returns

Half

A half-precision floating-point value that represents the converted integer (表示根据整数转换后的半精度浮点值).