|
|
HP-UX Reference > Ccopysign(3M)HP-UX 11i Version 2: December 2007 Update |
|
NAMEcopysign(), copysignf(), copysignl(), copysignw(), copysignq() — copysign functions DESCRIPTIONThe copysign() function returns x with its sign changed to the sign of y. copysignf() is a float version of copysign(); it takes float arguments and returns a float result. Itanium-based System Onlycopysignl() is a long double version of copysign(); it takes long double arguments and returns a long double result. copysignw() is an extended version of copysign(); it takes extended arguments and returns an extended result. copysignq() is equivalent to copysignl() on HP-UX systems. USAGETo use these functions, compile either with the default -Ae option or with the -Aa and -D_HPUX_SOURCE options. To use (for Itanium-based systems) copysignw()or copysignq(), compile with the -fpwidetypes option. Make sure your program includes <math.h>. Link in the math library by specifying -lm on the compiler or linker command line. |
|