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

Method as_tuple

Lib/_pydecimal.py:923–928  ·  view source on GitHub ↗

Represents the number as a triple tuple. To show the internals exactly as they are.

(self)

Source from the content-addressed store, hash-verified

921 return -2 if ans == -1 else ans
922
923 def as_tuple(self):
924 """Represents the number as a triple tuple.
925
926 To show the internals exactly as they are.
927 """
928 return DecimalTuple(self._sign, tuple(map(int, self._int)), self._exp)
929
930 def as_integer_ratio(self):
931 """Express a finite Decimal instance in the form n / d.

Callers 2

test_as_tupleMethod · 0.95
verifyFunction · 0.45

Calls

no outgoing calls

Tested by 1

test_as_tupleMethod · 0.76