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

Function abs

Lib/operator.py:79–81  ·  view source on GitHub ↗

Same as abs(a).

(a)

Source from the content-addressed store, hash-verified

77# Mathematical/Bitwise Operations *********************************************#
78
79def abs(a):
80 "Same as abs(a)."
81 return _abs(a)
82
83def add(a, b):
84 "Same as a + b."

Callers 15

Int2APFunction · 0.85
currencyFunction · 0.85
__new__Method · 0.85
pluralMethod · 0.85
repr_intMethod · 0.85
triangular_kernelFunction · 0.85
f_invFunction · 0.85
distanceMethod · 0.85
circleMethod · 0.85
_polytrafoMethod · 0.85
_undogotoMethod · 0.85
_rotateMethod · 0.85

Calls 1

_absFunction · 0.85

Tested by 15

testApproximatePiMethod · 0.68
testApproximateCos1Method · 0.68
test_mathMethod · 0.68
fooMethod · 0.68
fooMethod · 0.68
__eq__Method · 0.68
test_computationsMethod · 0.68
test_utcnowMethod · 0.68
test_tzinfo_nowMethod · 0.68
truedivFunction · 0.68