Content-type: text/html Man page of copysign

copysign

Section: Mathematical Library Functions (3M)
Updated: 12 Jul 2006
Index Return to Main Contents
 

NAME

copysign, copysignf, copysignl - number manipulation function  

SYNOPSIS

c99 [ flag... ] file... -lm [ library... ]
#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

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

RETURN VALUES

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

ERRORS

No errors are defined.  

ATTRIBUTES

See attributes(5) for descriptions of the following attributes:

ATTRIBUTE TYPEATTRIBUTE VALUE
Interface StabilityStandard
MT-LevelMT-Safe

 

SEE ALSO

math.h(3HEAD), signbit(3M),attributes(5), standards(5)


 

Index

NAME
SYNOPSIS
DESCRIPTION
RETURN VALUES
ERRORS
ATTRIBUTES
SEE ALSO

This document was created by man2html, using the manual pages.
Time: 02:39:33 GMT, October 02, 2010