Math.CopySign(Double, Double) Methode
Definition
Gibt einen Wert mit dem Betrag x
und dem Vorzeichen y
zurück.Returns a value with the magnitude of x
and the sign of y
.
public:
static double CopySign(double x, double y);
public static double CopySign (double x, double y);
static member CopySign : double * double -> double
Public Shared Function CopySign (x As Double, y As Double) As Double
Parameter
- x
- Double
Eine Zahl, deren Betrag im Ergebnis verwendet wird.A number whose magnitude is used in the result.
- y
- Double
Eine Zahl, deren Vorzeichen im Ergebnis verwendet wird.A number whose sign is the used in the result.
Gibt zurück
Ein Wert mit dem Betrag x
und dem Vorzeichen y
.A value with the magnitude of x
and the sign of y
.