語言

Int16.CopySign(Int16, Int16) 方法

定義

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

public:
 static short CopySign(short value, short sign) = System::Numerics::INumber<short>::CopySign;
public static short CopySign(short value, short sign);
static member CopySign : int16 * int16 -> int16
Public Shared Function CopySign (value As Short, sign As Short) As Short

參數

value
Int16

結果所用的大小值。

sign
Int16

結果中使用符號的值。

傳回

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

實作

適用於