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

Method adjusted

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

Return the adjusted exponent of self

(self)

Source from the content-addressed store, hash-verified

2915 return self._int[-1+self._exp] in '02468'
2916
2917 def adjusted(self):
2918 """Return the adjusted exponent of self"""
2919 try:
2920 return self._exp + len(self._int) - 1
2921 # If NaN or Infinity, self._exp is string
2922 except TypeError:
2923 return 0
2924
2925 def canonical(self):
2926 """Returns the same Decimal object.

Callers 12

_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

no outgoing calls

Tested by

no test coverage detected