Query: copysign
OS: netbsd
Section: 3
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
COPYSIGN(3) BSD Library Functions Manual COPYSIGN(3)NAMEcopysign, copysignf, copysignl -- functions to manipulate signsLIBRARYMath Library (libm, -lm)SYNOPSIS#include <math.h> double copysign(double x, double y); float copysignf(float x, float y); long double copysignl(long double x, long double y);DESCRIPTIONThe copysign(), copysignf(), and copysignl() functions return a value whose absolute value matches x, but whose sign bit is taken from y.RETURN VALUESUpon successful completion, all three functions return a value with the magnitude of x and the sign of y. If x is NaN , the functions return a NaN with the sign of y.SEE ALSOmath(3), signbit(3)STANDARDSThe described functions conform to ISO/IEC 9899:1999 (``ISO C99'').CAVEATSNote that on implementations that represent a signed zero but do not treat negative zero consistently in arithmetic operations, these func- tions may regard the sign of zero as positive.BSDApril 13, 2011 BSD
Related Man Pages |
---|
copysign(3m) - sunos |
copysignl(3) - debian |
copysign(3) - centos |
copysignf(3) - centos |
copysignl(3) - centos |
Similar Topics in the Unix Linux Community |
---|
Perl:: mass replacement of converting C code formats to tgmath.h |