copysign(), copysignf()

copy sign from one argument to another 

Function


SYNOPSIS

#include <math.h>

double copysign(double x, double y);

float copysignf(float x, float y);


DESCRIPTION

The copysign() function returns x with its sign changed to match the sign of y.

The copysignf() function is a single-precision version of copysign().


PARAMETERS

x 

Is the value whose sign is to be adjusted.

y 

Is the value whose sign is to be used.


RETURN VALUES

The copysign() function returns x with its sign changed to match the sign of y.


CONFORMANCE

copysign(): 4.4BSD.

copysignf(): PTC MKS Toolkit UNIX APIs extension


MULTITHREAD SAFETY LEVEL

MT-Safe.


PORTING ISSUES

None.


AVAILABILITY

PTC MKS Toolkit for Professional Developers
PTC MKS Toolkit for Professional Developers 64-Bit Edition
PTC MKS Toolkit for Enterprise Developers
PTC MKS Toolkit for Enterprise Developers 64-Bit Edition


PTC MKS Toolkit 10.4 Documentation Build 39.