copysign(3M)copysign(3M)NAMEcopysign(), copysignf(), copysignl(), copysignw(), copysignq() - copy‐
sign functions
SYNOPSIS
HP Integrity Server Only
DESCRIPTION
The function returns x with its sign changed to the sign of y.
is a version of it takes arguments and returns a result.
Integrity Server Only
is a version of it takes arguments and returns a result.
is an version of it takes arguments and returns an result.
is equivalent to on HP-UX systems.
USAGE
To use these functions, compile either with the default option or with
the and options. To use (for Integrity servers) compile with the
option. Make sure your program includes Link in the math library by
specifying on the compiler or linker command line.
RETURN VALUE
The function returns a value with the magnitude of x and the sign of y.
These functions raise no exceptions.
ERRORS
No errors are defined.
SEE ALSOfabs(3M), fpclassify(3M), remainder(3M), scalbn(3M), signbit(3M),
math(5).
STANDARDS CONFORMANCE
: ISO/IEC C99 (including Annex F, "IEC 60559 floating-point arith‐
metic")
copysign(3M)