copysign(3M)
NAME
copysign − return magnitude of first argument and sign of second argument
SYNOPSIS
cc [ flag ... ] file ... −lm [ library ... ]
#include <math.h>
double copysign(double x, double y);
DESCRIPTION
The copysign() function returns a value with the magnitude of x and the sign of y. It produces a NaN with the sign of y if x is a NaN.
RETURN VALUES
The copysign() function returns a value with the magnitude of x and the sign of y.
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
| MT-Level | MT-Safe |
SEE ALSO
SunOS 5.6 — Last change: 29 Dec 1996