Go to main content

man pages section 3: Extended Library Functions, Volume 2

Exit Print View

Updated: July 2017
 
 

copysignl(3M)

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 TYPE
ATTRIBUTE VALUE
Interface Stability
Committed
MT-Level
MT-Safe
Standard

See Also

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