Decimal.CopySign(Decimal, Decimal) Método

Definición

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

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

Parámetros

value
Decimal

Valor cuya magnitud se usa en el resultado.

sign
Decimal

Valor cuyo signo se usa en el resultado.

Devoluciones

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

Implementaciones

Se aplica a