pub fn copysign(x: f32, y: f32) -> f32
Returns a number composed of the magnitude of x and the sign of y.
x
y
Precision is specified when the libm feature is enabled.
libm