@@ -449,6 +449,14 @@ Rounds each element `x_i` of the input array `x` to the smallest (i.e., closest
449
449
450
450
- If ` x_i ` is already integer-valued, the result is ` x_i ` .
451
451
452
+ For floating-point operands,
453
+
454
+ - If ` x_i ` is ` +infinity ` , the result is ` +infinity ` .
455
+ - If ` x_i ` is ` -infinity ` , the result is ` -infinity ` .
456
+ - If ` x_i ` is ` +0 ` , the result is ` +0 ` .
457
+ - If ` x_i ` is ` -0 ` , the result is ` -0 ` .
458
+ - If ` x_i ` is ` NaN ` , the result is ` NaN ` .
459
+
452
460
#### Parameters
453
461
454
462
- ** x** : _ < ; array> ; _
@@ -651,6 +659,14 @@ Rounds each element `x_i` of the input array `x` to the greatest (i.e., closest
651
659
652
660
- If ` x_i ` is already integer-valued, the result is ` x_i ` .
653
661
662
+ For floating-point operands,
663
+
664
+ - If ` x_i ` is ` +infinity ` , the result is ` +infinity ` .
665
+ - If ` x_i ` is ` -infinity ` , the result is ` -infinity ` .
666
+ - If ` x_i ` is ` +0 ` , the result is ` +0 ` .
667
+ - If ` x_i ` is ` -0 ` , the result is ` -0 ` .
668
+ - If ` x_i ` is ` NaN ` , the result is ` NaN ` .
669
+
654
670
#### Parameters
655
671
656
672
- ** x** : _ < ; array> ; _
@@ -1245,6 +1261,14 @@ Rounds each element `x_i` of the input array `x` to the nearest integer-valued n
1245
1261
#### Special Cases
1246
1262
1247
1263
- If ` x_i ` is already integer-valued, the result is ` x_i ` .
1264
+
1265
+ For floating-point operands,
1266
+
1267
+ - If ` x_i ` is ` +infinity ` , the result is ` +infinity ` .
1268
+ - If ` x_i ` is ` -infinity ` , the result is ` -infinity ` .
1269
+ - If ` x_i ` is ` +0 ` , the result is ` +0 ` .
1270
+ - If ` x_i ` is ` -0 ` , the result is ` -0 ` .
1271
+ - If ` x_i ` is ` NaN ` , the result is ` NaN ` .
1248
1272
- If two integers are equally close to ` x_i ` , the result is the even integer closest to ` x_i ` .
1249
1273
1250
1274
#### Parameters
@@ -1462,6 +1486,14 @@ Rounds each element `x_i` of the input array `x` to the integer-valued number th
1462
1486
1463
1487
- If ` x_i ` is already integer-valued, the result is ` x_i ` .
1464
1488
1489
+ For floating-point operands,
1490
+
1491
+ - If ` x_i ` is ` +infinity ` , the result is ` +infinity ` .
1492
+ - If ` x_i ` is ` -infinity ` , the result is ` -infinity ` .
1493
+ - If ` x_i ` is ` +0 ` , the result is ` +0 ` .
1494
+ - If ` x_i ` is ` -0 ` , the result is ` -0 ` .
1495
+ - If ` x_i ` is ` NaN ` , the result is ` NaN ` .
1496
+
1465
1497
#### Parameters
1466
1498
1467
1499
- ** x** : _ < ; array> ; _
0 commit comments