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

Method copy_abs

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

Returns a copy with the sign set to 0.

(self)

Source from the content-addressed store, hash-verified

3027 return s.compare_total(o)
3028
3029 def copy_abs(self):
3030 """Returns a copy with the sign set to 0. """
3031 return _dec_from_triple(0, self._int, self._exp, self._is_special)
3032
3033 def copy_negate(self):
3034 """Returns a copy with the sign inverted."""

Callers 8

__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

Calls 1

_dec_from_tripleFunction · 0.85

Tested by

no test coverage detected