MCPcopy Index your code
hub / github.com/python/cpython / copy_abs

Method copy_abs

Lib/_pydecimal.py:2984–2986  ·  view source on GitHub ↗

Returns a copy with the sign set to 0.

(self)

Source from the content-addressed store, hash-verified

2982 return s.compare_total(o)
2983
2984 def copy_abs(self):
2985 """Returns a copy with the sign set to 0. """
2986 return _dec_from_triple(0, self._int, self._exp, self._is_special)
2987
2988 def copy_negate(self):
2989 """Returns a copy with the sign inverted."""

Callers 9

__neg__Method · 0.95
__pos__Method · 0.95
__abs__Method · 0.95
compare_total_magMethod · 0.95
max_magMethod · 0.95
min_magMethod · 0.95
__format__Method · 0.95
copy_absMethod · 0.45
test_implicit_contextMethod · 0.45

Calls 1

_dec_from_tripleFunction · 0.85

Tested by 1

test_implicit_contextMethod · 0.36