MCPcopy Index your code
hub / github.com/RustPython/RustPython / adjusted

Method adjusted

Lib/_pydecimal.py:2869–2875  ·  view source on GitHub ↗

Return the adjusted exponent of self

(self)

Source from the content-addressed store, hash-verified

2867 return self._int[-1+self._exp] in '02468'
2868
2869 def adjusted(self):
2870 """Return the adjusted exponent of self"""
2871 try:
2872 return self._exp + len(self._int) - 1
2873 # If NaN or Infinity, self._exp is string
2874 except TypeError:
2875 return 0
2876
2877 def canonical(self):
2878 """Returns the same Decimal object.

Callers 15

_cmpMethod · 0.95
_divideMethod · 0.95
remainder_nearMethod · 0.95
__pow__Method · 0.95
quantizeMethod · 0.95
_roundMethod · 0.95
expMethod · 0.95
is_normalMethod · 0.95
is_subnormalMethod · 0.95
logbMethod · 0.95
_power_moduloMethod · 0.80
next_towardMethod · 0.80

Calls 1

lenFunction · 0.85

Tested by 1

test_adjustedMethod · 0.64