decimal.Decimal.copy_sign

Decimal.copy_sign(other)[source]

Returns self with the sign of other.