public static float copySign (float magnitude, float sign)

Returns the first floating-point argument with the sign of the second floating-point argument. For this method, a NaN sign argument is always treated as if it were positive.

Parameters:
magnitude    the parameter providing the magnitude of the result
sign    the parameter providing the sign of the result

Returns:  a value with the magnitude of magnitude and the sign of sign.

Since:  1.6