Go to main content

man pages section 3: Extended Library Functions, Volume 2

Exit Print View

Updated: Thursday, June 13, 2019
 
 

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

ATTRIBUTE TYPE
ATTRIBUTE VALUE
Interface Stability
Committed
Availability
system/library/math
MT-Level
MT-Safe
Standard

See Also

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