User Tools

Site Tools


solaris:copysign.3m

copysign


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(7) for descriptions of the following attributes:

SEE ALSO

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


solaris/copysign.3m.txt · Last modified: 2023/07/19 08:58 by A User Not Logged in