copysign

external fun copysign(x: Double, y: Double): Double

Create value with given magnitude, copying sign of second value.