Skip to content

Commit 8212e67

Browse files
committed
Special case neg zeros in x.__int__()
1 parent e476516 commit 8212e67

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

spec/API_specification/array_api/array_object.py

+1
Original file line numberDiff line numberDiff line change
@@ -530,6 +530,7 @@ def __int__(self: array, /) -> int:
530530
For floating-point operands,
531531
532532
- If ``self`` is a finite number, the result is the integer part of ``self``.
533+
- If ``self`` is ``-0``, the result is ``0``.
533534
534535
Parameters
535536
----------

0 commit comments

Comments
 (0)