Skip to content

Commit d1d072b

Browse files
committed
Clearer language for noting mixed kind promotion
1 parent 6632131 commit d1d072b

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

spec/API_specification/array_object.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1115,7 +1115,7 @@ Calculates an implementation-dependent approximation of exponentiation by raisin
11151115
```{note}
11161116
If both `self` and `other` have integer data types, the result of `__pow__` when `other_i` is negative (i.e., less than zero) is unspecified and thus implementation-dependent.
11171117
1118-
If `self` has an integer data type and `other` has a floating-point data type, behavior is implementation-dependent (type promotion between data type "kinds" (integer versus floating-point) is unspecified).
1118+
If `self` has an integer data type and `other` has a floating-point data type, behavior is implementation-dependent. This is because type promotion between data type kinds” (i.e. integer versus floating-point) is unspecified.
11191119
```
11201120

11211121
#### Special Cases
@@ -1250,7 +1250,7 @@ Element-wise results must equal the results returned by the equivalent element-w
12501250
Evaluates `self_i / other_i` for each element of an array instance with the respective element of the array `other`.
12511251

12521252
```{note}
1253-
If one or both of `self` and `other` have integer data types, the result is unspecified and thus implementation-dependent (type promotion between data type “kinds” (integer versus floating-point) is unspecified).
1253+
If one or both of `self` and `other` have integer data types, the result is unspecified and thus implementation-dependent. This is because type promotion between data type “kinds” (i.e. integer versus floating-point) is unspecified.
12541254
```
12551255

12561256
#### Special Cases

spec/API_specification/elementwise_functions.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -529,7 +529,7 @@ For floating-point operands,
529529
Calculates the division for each element `x1_i` of the input array `x1` with the respective element `x2_i` of the input array `x2`.
530530

531531
```{note}
532-
If one or both of the input arrays have integer data types, the result is unspecified and thus implementation-dependent (type promotion between data type “kinds” (integer versus floating-point) is unspecified).
532+
If one or both of the input arrays have integer data types, the result is unspecified and thus implementation-dependent. This is because type promotion between data type “kinds” (i.e. integer versus floating-point) is unspecified.
533533
```
534534

535535
#### Special Cases
@@ -1227,7 +1227,7 @@ Calculates an implementation-dependent approximation of exponentiation by raisin
12271227
```{note}
12281228
If both `x1` and `x2` have integer data types, the result of `pow` when `x2_i` is negative (i.e., less than zero) is unspecified and thus implementation-dependent.
12291229
1230-
If `x1` has an integer data type and `x2` has a floating-point data type, behavior is implementation-dependent (type promotion between data type "kinds" (integer versus floating-point) is unspecified).
1230+
If `x1` has an integer data type and `x2` has a floating-point data type, behavior is implementation-dependent. This is because type promotion between data type kinds” (i.e. integer versus floating-point) is unspecified.
12311231
```
12321232

12331233
#### Special Cases

0 commit comments

Comments
 (0)