Everything

copysign [V1.09 or later]


This function generates a value that has the absolute value of x and the sign of y.

[Classification]

Mathematical library

[Syntax]

#include <math.h>

double __far copysign(double x, double y); (C99)

[Return value]

Returns a value that has the absolute value of x and the sign of y.

[Description]

This function generates a value that has the absolute value of x and the sign of y.