libm

Function copysign

Source
pub fn copysign(x: f64, y: f64) -> f64
Expand description

Sign of Y, magnitude of X (f64)

Constructs a number with the magnitude (absolute value) of its first argument, x, and the sign of its second argument, y.