1COPYSIGN(P)                POSIX Programmer's Manual               COPYSIGN(P)
2
3
4

NAME

6       copysign, copysignf, copysignl - number manipulation function
7

SYNOPSIS

9       #include <math.h>
10
11       double copysign(double x, double y);
12       float copysignf(float x, float y);
13       long double copysignl(long double x, long double y);
14
15

DESCRIPTION

17       These  functions  shall produce a value with the magnitude of x and the
18       sign of y. On implementations that represent a signed zero but  do  not
19       treat  negative zero consistently in arithmetic operations, these func‐
20       tions regard the sign of zero as positive.
21

RETURN VALUE

23       Upon successful completion, these functions shall return a  value  with
24       the magnitude of x and the sign of y.
25

ERRORS

27       No errors are defined.
28
29       The following sections are informative.
30

EXAMPLES

32       None.
33

APPLICATION USAGE

35       None.
36

RATIONALE

38       None.
39

FUTURE DIRECTIONS

41       None.
42

SEE ALSO

44       signbit()  ,  the  Base  Definitions  volume  of  IEEE Std 1003.1-2001,
45       <math.h>
46
48       Portions of this text are reprinted and reproduced in  electronic  form
49       from IEEE Std 1003.1, 2003 Edition, Standard for Information Technology
50       -- Portable Operating System Interface (POSIX),  The  Open  Group  Base
51       Specifications  Issue  6,  Copyright  (C) 2001-2003 by the Institute of
52       Electrical and Electronics Engineers, Inc and The Open  Group.  In  the
53       event of any discrepancy between this version and the original IEEE and
54       The Open Group Standard, the original IEEE and The Open Group  Standard
55       is  the  referee document. The original Standard can be obtained online
56       at http://www.opengroup.org/unix/online.html .
57
58
59
60IEEE/The Open Group                  2003                          COPYSIGN(P)
Impressum