Skip to content

Commit c85425e

Browse files
committed
docs: specify that results must be "correctly rounded"
1 parent 10c6d26 commit c85425e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

spec/draft/design_topics/accuracy.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ including the corresponding element-wise array APIs defined in this standard
2323
- multiply
2424
- divide
2525

26-
for real-valued floating-point operands must return the correctly rounded value according to IEEE 754-2019 and a supported rounding mode. By default, the rounding mode should be ``roundTiesToEven`` (i.e., round to nearest with ties rounded toward the nearest value with an even least significant bit).
26+
for real-valued floating-point operands must return a correctly rounded value according to IEEE 754-2019 and a supported rounding mode. By default, the rounding mode should be ``roundTiesToEven`` (i.e., round to nearest with ties rounded toward the nearest value with an even least significant bit).
2727

2828
IEEE 754-2019 requires support for subnormal (a.k.a., denormal) numbers, which are useful for supporting gradual underflow. However, hardware support for subnormal numbers is not universal, and many platforms (e.g., accelerators) and compilers support toggling denormals-are-zero (DAZ) and/or flush-to-zero (FTZ) behavior to increase performance and to guard against timing attacks. Accordingly, conforming implementations may vary in their support for subnormal numbers.
2929

@@ -35,7 +35,7 @@ The results of the following functions
3535
- reciprocal
3636
- sqrt
3737

38-
for real-valued floating-point operands must return the nearest representable value according to IEEE 754-2019 and a supported rounding mode.
38+
for real-valued floating-point operands must return a correctly rounded value according to IEEE 754-2019 and a supported rounding mode.
3939

4040
This specification does **not** precisely define the behavior of the following functions
4141

0 commit comments

Comments
 (0)