Skip to content

Commit 614f8c1

Browse files
authored
Add note to __abs__ concerning signed integer dtype behavior (#271)
See also [gh-250](#250).
1 parent 4e51c5b commit 614f8c1

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

spec/API_specification/array_object.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -294,6 +294,10 @@ Limiting the transpose to two-dimensional arrays (matrices) deviates from the Nu
294294

295295
Calculates the absolute value for each element of an array instance (i.e., the element-wise result has the same magnitude as the respective element but has positive sign).
296296

297+
```{note}
298+
For signed integer data types, the absolute value of the minimum representable integer is implementation-dependent.
299+
```
300+
297301
#### Special Cases
298302

299303
For floating-point operands, let `self` equal `x`.

0 commit comments

Comments
 (0)