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 的值。

實作

適用於