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

Function _sqrt_nearest

Lib/decimal.py:5515–5528  ·  view source on GitHub ↗

Closest integer to the square root of the positive integer n. a is an initial approximation to the square root. Any positive integer will do for a, but the closer a is to the square root of n the faster convergence will be.

(n, a)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

_ilogFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected