copysignl

Synopsis

#include <math.h>

double copysign(double x, double y);

float copysignf(float x, float y);

long double copysignl(long double x, long double y);

Status

Partially implemented

Conformance

IEEE Std 1003.1-2017

Description

These functions shall produce a value with the magnitude of x and the sign of y. On implementations that represent a signed zero but do not treat negative zero consistently in arithmetic operations, these functions regard the sign of zero as positive.

Return value

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

Errors

No errors are defined.

Tests

Untested

Known bugs

None