語言

UInt16.INumber<UInt16>.CopySign(UInt16, UInt16) 方法

定義

將值的正負號複製到另一個值的正負號。

 static System::UInt16 System.Numerics.INumber<System.UInt16>.CopySign(System::UInt16 value, System::UInt16 sign) = System::Numerics::INumber<System::UInt16>::CopySign;
static ushort INumber<ushort>.CopySign(ushort value, ushort sign);
static member System.Numerics.INumber<System.UInt16>.CopySign : uint16 * uint16 -> uint16
 Shared Function CopySign (value As UShort, sign As UShort) As UShort Implements INumber(Of UShort).CopySign

參數

value
UInt16

結果所用的大小值。

sign
UInt16

結果中使用符號的值。

傳回

一個大小為 、 value 符號為 sign的值。

實作

適用於