1copysign(3M) Mathematical Library Functions copysign(3M)
2
3
4
6 copysign, copysignf, copysignl - number manipulation function
7
9 c99 [ flag... ] file... -lm [ library... ]
10 #include <math.h>
11
12 double copysign(double x, double y);
13
14
15 float copysignf(float x, float y);
16
17
18 long double copysignl(long double x, long double y);
19
20
22 These functions produce a value with the magnitude of x and the sign of
23 y.
24
26 Upon successful completion, these functions return a value with the
27 magnitude of x and the sign of y.
28
30 No errors are defined.
31
33 See attributes(5) for descriptions of the following attributes:
34
35
36
37
38 ┌─────────────────────────────┬─────────────────────────────┐
39 │ ATTRIBUTE TYPE │ ATTRIBUTE VALUE │
40 ├─────────────────────────────┼─────────────────────────────┤
41 │Interface Stability │Standard │
42 ├─────────────────────────────┼─────────────────────────────┤
43 │MT-Level │MT-Safe │
44 └─────────────────────────────┴─────────────────────────────┘
45
47 math.h(3HEAD), signbit(3M),attributes(5), standards(5)
48
49
50
51SunOS 5.11 12 Jul 2006 copysign(3M)