COPYSIGN(3) NEWLIB COPYSIGN(3)NAME
1.12 `copysign', `copysignf'--sign of Y, magnitude of X
SYNOPSIS
#include <math.h>
double copysign (double X, double Y);
float copysignf (float X, float Y);
DESCRIPTION
`copysign' constructs a number with the magnitude (absolute value) of
its first argument, X, and the sign of its second argument, Y.
`copysignf' does the same thing; the two functions differ only in
the type of their arguments and result.
RETURNS
`copysign' returns a `double' with the magnitude of X and the sign of
Y. `copysignf' returns a `float' with the magnitude of X and the sign
of Y.
PORTABILITY
`copysign' is not required by either ANSI C or the System V Interface
Definition (Issue 2).
SEE ALSO
copysign is part of the library. The full documentation for is main‐
tained as a Texinfo manual. If info and are properly installed at your
site, the command
info
will give you access to the complete manual.
NEWLIB April 2010 COPYSIGN(3)