copysign function works for y=-0.0