Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/numpy/numpy
/ __trunc__
Method
__trunc__
numpy/core/tests/test_umath.py:4070–4071 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
4068
def
__ceil__(self):
4069
return
2
4070
def
__trunc__(self):
4071
return
3
4072
4073
arr = np.array([C(), C()])
4074
assert_equal(np.floor(arr), [1, 1])
Callers
nothing calls this directly
Calls
no outgoing calls
Tested by
no test coverage detected