Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/RustPython/RustPython
/ 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
79
def
abs(a):
80
"Same as abs(a)."
81
return
_abs(a)
82
83
def
add(a, b):
84
"Same as a + b."
Callers
15
Int2AP
Function · 0.70
currency
Function · 0.70
__new__
Method · 0.70
plural
Method · 0.70
repr_int
Method · 0.70
triangular_kernel
Function · 0.70
f_inv
Function · 0.70
_cmp
Function · 0.70
_hash_algorithm
Function · 0.70
_round_to_exponent
Function · 0.70
_round_to_figures
Function · 0.70
_format_general
Method · 0.70
Calls
no outgoing calls
Tested by
15
testApproximatePi
Method · 0.40
testApproximateCos1
Method · 0.40
test_math
Method · 0.40
foo
Method · 0.40
foo
Method · 0.40
test_basic_inheritance
Method · 0.40
__eq__
Method · 0.40
test_computations
Method · 0.40
test_utcnow
Method · 0.40
test_utc_offset_out_of_bounds
Method · 0.40
test_tzinfo_now
Method · 0.40
truediv
Function · 0.40