Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Change documentation for sys.float_info.rounds
Change the documentation for sys.float_info.rounds to remove
references to C99 section 5.2.4.2.2 and instead place the
available values inline.
  • Loading branch information
tbwolfe committed Nov 22, 2022
commit a724de04c9f2110fb3c463cd45fd51df055248e7
17 changes: 11 additions & 6 deletions Doc/library/sys.rst
Original file line number Diff line number Diff line change
Expand Up @@ -604,12 +604,17 @@ always available.
+---------------------+----------------+--------------------------------------------------+
| :const:`radix` | FLT_RADIX | radix of exponent representation |
+---------------------+----------------+--------------------------------------------------+
| :const:`rounds` | FLT_ROUNDS | integer constant representing the rounding mode |
| | | used for arithmetic operations. This reflects |
| | | the value of the system FLT_ROUNDS macro at |
| | | interpreter startup time. See section 5.2.4.2.2 |
| | | of the C99 standard for an explanation of the |
| | | possible values and their meanings. |
| :const:`rounds` | FLT_ROUNDS | The rounding mode for floating-point addition is |
| | | characterized by the implementation defined value|
| | | of FLT_ROUNDS: |
| | | -1 indeterminable |
| | | 0 toward zero |
| | | 1 to nearest |
| | | 2 toward positive infinity |
| | | 3 toward negative infinity |
| | | |
| | | All other values for FLT_ROUNDS characterize |
| | | implementation-defined rounding behavior. |
+---------------------+----------------+--------------------------------------------------+

The attribute :attr:`sys.float_info.dig` needs further explanation. If
Expand Down