Int16.CopySign(Int16, Int16) Método

Definición

Copia el signo de un valor en el signo de otro valor.

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

Parámetros

value
Int16

Valor cuya magnitud se usa en el resultado.

sign
Int16

Valor cuyo signo se usa en el resultado.

Devoluciones

Valor con la magnitud de value y el signo de sign.

Implementaciones

Se aplica a