Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
COPYSIGN(3)	       FreeBSD Library Functions Manual		   COPYSIGN(3)

NAME
     copysign, copysignf, copysignl -- copy sign

LIBRARY
     Math 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);

DESCRIPTION
     The copysign(), copysignf() and copysignl() functions return x with its
     sign changed to y's.

SEE ALSO
     fabs(3), fdim(3), ieee(3),	math(3)

STANDARDS
     The copysign(), copysignf(), and copysignl() routines conform to ISO/IEC
     9899:1999 (``ISO C99'').  They implement the Copysign function recom-
     mended by IEEE Std	754-1985.

HISTORY
     The copysign(), copysignf(), and copysignl() functions appeared in
     4.3BSD, FreeBSD 2.0, and FreeBSD 5.3, respectively.

FreeBSD	11.2		       January 26, 2005			  FreeBSD 11.2

NAME | LIBRARY | SYNOPSIS | DESCRIPTION | SEE ALSO | STANDARDS | HISTORY

Want to link to this manual page? Use this URL:
<https://www.freebsd.org/cgi/man.cgi?query=copysign&sektion=3&manpath=FreeBSD+11.2-RELEASE>

home | help