BitConverter.UInt16BitsToHalf(UInt16) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Important
This API is not CLS-compliant.
Converts the specified 16-bit unsigned integer to a half-precision floating point number.
public:
static Half UInt16BitsToHalf(System::UInt16 value);
[System.CLSCompliant(false)]
public static Half UInt16BitsToHalf (ushort value);
[<System.CLSCompliant(false)>]
static member UInt16BitsToHalf : uint16 -> Half
Public Shared Function UInt16BitsToHalf (value As UShort) As Half
Parameters
- value
- UInt16
The number to convert.
Returns
A half-precision floating point number whose bits are identical to value
.
- Attributes
Applies to
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.