NFloat.CopySign(NFloat, NFloat) Methode

Definition

Kopiert das Zeichen eines Werts in das Zeichen eines anderen Werts.

public:
 static System::Runtime::InteropServices::NFloat CopySign(System::Runtime::InteropServices::NFloat value, System::Runtime::InteropServices::NFloat sign) = System::Numerics::INumber<System::Runtime::InteropServices::NFloat>::CopySign;
public static System.Runtime.InteropServices.NFloat CopySign (System.Runtime.InteropServices.NFloat value, System.Runtime.InteropServices.NFloat sign);
static member CopySign : System.Runtime.InteropServices.NFloat * System.Runtime.InteropServices.NFloat -> System.Runtime.InteropServices.NFloat
Public Shared Function CopySign (value As NFloat, sign As NFloat) As NFloat

Parameter

value
NFloat

Der Wert, dessen Größe im Ergebnis verwendet wird.

sign
NFloat

Der Wert, dessen Vorzeichen im Ergebnis verwendet wird.

Gibt zurück

Ein Wert mit dem Betrag value und dem Vorzeichen sign.

Implementiert

Gilt für: