Int32.CopySign(Int32, Int32) Método

Definição

Copia o sinal de um valor para o sinal de outro valor.

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

Parâmetros

value
Int32

O valor cuja magnitude é usada no resultado.

sign
Int32

O valor cujo sinal é usado no resultado.

Retornos

Um valor com a magnitude e value o sinal de sign.

Implementações

Aplica-se a