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

Function _dpower

Lib/decimal.py:5782–5822  ·  view source on GitHub ↗

Given integers xc, xe, yc and ye representing Decimals x = xc*10**xe and y = yc*10**ye, compute x**y. Returns a pair of integers (c, e) such that: 10**(p-1) <= c <= 10**p, and (c-1)*10**e < x**y < (c+1)*10**e in other words, c*10**e is an approximation to x**y with p digits

(xc, xe, yc, ye, p)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

__pow__Method · 0.85

Calls 4

strFunction · 0.85
_dlogFunction · 0.85
_div_nearestFunction · 0.85
_dexpFunction · 0.85

Tested by

no test coverage detected