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

Method _rescale

Lib/decimal.py:2508–2540  ·  view source on GitHub ↗

Rescale self so that the exponent is exp, either by padding with zeros or by truncating digits, using the given rounding mode. Specials are returned without change. This operation is quiet: it raises no flags, and uses no information from the context. exp =

(self, exp, rounding)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 8

__add__Method · 0.95
_divideMethod · 0.95
remainder_nearMethod · 0.95
quantizeMethod · 0.95
_roundMethod · 0.95
to_integral_exactMethod · 0.95
to_integral_valueMethod · 0.95
__format__Method · 0.95

Calls 3

DecimalClass · 0.85
_dec_from_tripleFunction · 0.85
strFunction · 0.85

Tested by

no test coverage detected