MCPcopy Create free account
hub / github.com/eshirazi/python-with-braces / quantize

Method quantize

Lib/decimal.py:2422–2491  ·  view source on GitHub ↗

Quantize self so its exponent is the same as that of exp. Similar to self._rescale(exp._exp) but with error checking.

(self, exp, rounding=None, context=None, watchexp=True)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

quantizeMethod · 0.45

Calls 11

_check_nansMethod · 0.95
_isinfinityMethod · 0.95
_rescaleMethod · 0.95
adjustedMethod · 0.95
_convert_otherFunction · 0.85
getcontextFunction · 0.85
DecimalClass · 0.85
_dec_from_tripleFunction · 0.85
_raise_errorMethod · 0.80
EtinyMethod · 0.80
_fixMethod · 0.45

Tested by

no test coverage detected