Int16.CopySign(Int16, Int16) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
將值的正負號複製到另一個值的正負號。
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的值。