Manpage of COPYSIGN
COPYSIGN
Section: NEWLIB (3)
Updated: 2005 Feb 23
Index
Return to Main Contents
NAME
1.31 `copysign', `copysignf'--sign of Y, magnitude of X
SYNOPSIS
#include <math.h>
double copysign (double X, double Y);
float copysignf (float X, float Y);
DESCRIPTION
`copysign' constructs a number with the magnitude (absolute value) of
its first argument, X, and the sign of its second argument, Y.
`copysignf' does the same thing; the two functions differ only in
the type of their arguments and result.
RETURNS
`copysign' returns a `double' with the magnitude of X and the sign of Y.
`copysignf' returns a `float' with the magnitude of X and the sign of Y.
PORTABILITY
`copysign' is not required by either ANSI C or the System V Interface
Definition (Issue 2).
SEE ALSO
copysign
is part of the
libm
library.
The full documentation for
libm
is maintained as a Texinfo manual. If
info
and
libm
are properly installed at your site, the command
-
info libm
will give you access to the complete manual.
Index
- NAME
-
- SYNOPSIS
-
- DESCRIPTION
-
- RETURNS
-
- PORTABILITY
-
- SEE ALSO
-
This document was created by
man2html,
using the manual pages.
Time: 21:25:14 GMT, May 16, 2005
www.fiveanddime.net