fn copysign(magnitude: anytype, sign: @TypeOf(magnitude)) @TypeOf(magnitude)

Returns a value with the magnitude of magnitude and the sign of sign.

Parameters

magnitude: anytype,
sign: @TypeOf(magnitude),