MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / copy_sign

Method copy_sign

tools/python-3.11.9-amd64/Lib/_pydecimal.py:3040–3044  ·  view source on GitHub ↗

Returns self with the sign of other.

(self, other, context=None)

Source from the content-addressed store, hash-verified

3038 return _dec_from_triple(1, self._int, self._exp, self._is_special)
3039
3040 def copy_sign(self, other, context=None):
3041 """Returns self with the sign of other."""
3042 other = _convert_other(other, raiseit=True)
3043 return _dec_from_triple(other._sign, self._int,
3044 self._exp, self._is_special)
3045
3046 def exp(self, context=None):
3047 """Returns e ** self."""

Callers 2

next_towardMethod · 0.95
copy_signMethod · 0.45

Calls 2

_convert_otherFunction · 0.85
_dec_from_tripleFunction · 0.85

Tested by

no test coverage detected