pub const fn copysign<T>(x: T, y: T) -> Twhere
T: FloatPrimitive,🔬This is a nightly-only experimental API. (
core_intrinsics)This item is validated for IEC 61508 (SIL 2) and ISO 26262 (ASIL B).
Expand description
Copies the sign from y to x for floating-point values.
The stabilized versions of this intrinsic are available on the float
primitives via the copysign method. For example, f32::copysign.