Your Browser is not longer supported

Please use Google Chrome, Mozilla Firefox or Microsoft Edge to view the page correctly
Loading...

{{viewport.spaceProperty.prod}}

copysign, copysignf, copysignl - Vorzeichen kopieren

&pagelevel(4)&pagelevel

Definition

#include <math.h>

double copysign(double x, double y); (C11)
float copysignf (float x, float y); (C11)
long double copysignl (long double x, long double y); (C11)

Die Funktionen geben den Wert von x mit dem Vorzeichen von y zurück.

Returnwert

|x|                   falls y >= 0

-|x|                  falls y < 0

Siehe auch

fabs, signbit