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

Function _decimal_lshift_exact

Lib/decimal.py:5494–5513  ·  view source on GitHub ↗

Given integers n and e, return n * 10**e if it's an integer, else None. The computation is designed to avoid computing large powers of 10 unnecessarily. >>> _decimal_lshift_exact(3, 4) 30000 >>> _decimal_lshift_exact(300, -999999999) # returns None

(n, e)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

_power_exactMethod · 0.85

Calls 2

strFunction · 0.85
rstripMethod · 0.80

Tested by

no test coverage detected