1copysign(3M)            Mathematical Library Functions            copysign(3M)
2
3
4

NAME

6       copysign, copysignf, copysignl - number manipulation function
7

SYNOPSIS

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

DESCRIPTION

22       These functions produce a value with the magnitude of x and the sign of
23       y.
24

RETURN VALUES

26       Upon successful completion, these functions return  a  value  with  the
27       magnitude of x and the sign of y.
28

ERRORS

30       No errors are defined.
31

ATTRIBUTES

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

SEE ALSO

47       math.h(3HEAD), signbit(3M),attributes(5), standards(5)
48
49
50
51SunOS 5.11                        12 Jul 2006                     copysign(3M)
Impressum