Function libm::copysignf

source ·
pub fn copysignf(x: f32, y: f32) -> f32
Expand description

Sign of Y, magnitude of X (f32)

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