BitConverter.UInt16BitsToHalf(UInt16) Metod
Definition
Viktigt
En del information gäller för förhandsversionen av en produkt och kan komma att ändras avsevärt innan produkten blir allmänt tillgänglig. Microsoft lämnar inga garantier, uttryckliga eller underförstådda, avseende informationen som visas här.
Viktigt!
Detta API uppfyller inte CLS.
Konverterar det angivna 16-bitars osignerade heltalet till ett flyttal med halv precision.
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
Parametrar
- value
- UInt16
Talet som ska konverteras.
Returer
Ett flyttal med halv precision vars bitar är identiska med value.
- Attribut