Standards / Extensions | C or C++ | Dependencies |
---|---|---|
Language Environment |
both | OS/390® V2R6 |
#define _AIX_COMPATIBILITY
#include <math.h>
#include <float.h>
double copysign(double x, double y);
#define _ISOC99_SOURCE
#include <math.h>
#include <float.h>
float copysignf(float x, float y);
long double copysignl(long double x, long double y);
#define _TR1_C99
#include <math.h>
float copysign(float x, float y);
long double copysign(long double x, long double y);
The copysign functions produce a value with the magnitude of x and the sign of y.
Function | Hex | IEEE |
---|---|---|
copysign | X | X |
copysignf | X | X |
copysignl | X | X |
The copysign functions return a value with the magnitude of x and the sign of y.