MCPcopy Index your code
hub / github.com/python/cpython / standard_ulp

Method standard_ulp

Modules/_decimal/tests/deccheck.py:408–409  ·  view source on GitHub ↗
(self, dec, prec)

Source from the content-addressed store, hash-verified

406 return abs(a - b)
407
408 def standard_ulp(self, dec, prec):
409 return _dec_from_triple(0, '1', dec._exp+len(dec._int)-prec)
410
411 def rounding_direction(self, x, mode):
412 """Determine the effective direction of the rounding when

Callers 1

check_ulpdiffMethod · 0.95

Calls 1

_dec_from_tripleFunction · 0.90

Tested by

no test coverage detected