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

Method next_toward

Lib/decimal.py:3440–3484  ·  view source on GitHub ↗

Returns the number closest to self, in the direction towards other. The result is the closest representable number to self (excluding self) that is in the direction towards other, unless both have the same value. If the two operands are numerically equal, then the r

(self, other, context=None)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

next_towardMethod · 0.45

Calls 10

_check_nansMethod · 0.95
_cmpMethod · 0.95
copy_signMethod · 0.95
next_plusMethod · 0.95
next_minusMethod · 0.95
_convert_otherFunction · 0.85
getcontextFunction · 0.85
_isinfinityMethod · 0.80
_raise_errorMethod · 0.80
adjustedMethod · 0.80

Tested by

no test coverage detected