Mathematical Library Functions copysign(3M)
NAME
copysign, copysignf, copysignl - number manipulation func-
tionSYNOPSIS
c99 [ flag... ] file... -lm [ library... ]
#include
double copysign(double x, double y); float copysignf(float x, float y);long double copysignl(long double x, long double y);
DESCRIPTION
These functions produce a value with the magnitude of x and the sign of y.RETURN VALUES
Upon successful completion, these functions return a value with the magnitude of x and the sign of y.ERRORS
No errors are defined.ATTRIBUTES
See attributes(5) for descriptions of the following attri-
butes:____________________________________________________________
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
|_____________________________|_____________________________|
| Interface Stability | Committed ||_____________________________|_____________________________|
| MT-Level | MT-Safe |
|_____________________________|_____________________________|
| Standard | See standards(5). ||_____________________________|_____________________________|
SEE ALSO
math.h(3HEAD), signbit(3M),attributes(5), standards(5)SunOS 5.11 Last change: 12 Jul 2006 1