Skip to content

Commit 1229f06

Browse files
authored
Fix description for trunc (#511)
1 parent ea8f6a9 commit 1229f06

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: spec/API_specification/array_api/elementwise_functions.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1624,7 +1624,7 @@ def tanh(x: array, /) -> array:
16241624

16251625
def trunc(x: array, /) -> array:
16261626
"""
1627-
Rounds each element ``x_i`` of the input array ``x`` to the integer-valued number that is closest to but no greater than ``x_i``.
1627+
Rounds each element ``x_i`` of the input array ``x`` to the nearest integer-valued number that is closer to zero than ``x_i``.
16281628
16291629
**Special cases**
16301630

0 commit comments

Comments
 (0)