BitConverter.UInt16BitsToHalf(UInt16) Method

Definition

Important

This API is not CLS-compliant.

Converts the specified 16-bit unsigned integer to a half-precision floating point number.

C#
[System.CLSCompliant(false)]
public static Half UInt16BitsToHalf(ushort value);

Parameters

value
UInt16

The number to convert.

Returns

A half-precision floating point number whose bits are identical to value.

Attributes

Applies to

Toode Versioonid
.NET 6, 7, 8, 9, 10