Commit b1e58fe4 authored by Mark Dickinson's avatar Mark Dickinson

Issue #12245: Document sys.float_info.rounds better.

parent fabf0275
...@@ -296,8 +296,12 @@ always available. ...@@ -296,8 +296,12 @@ always available.
+---------------------+----------------+--------------------------------------------------+ +---------------------+----------------+--------------------------------------------------+
| :const:`radix` | FLT_RADIX | radix of exponent representation | | :const:`radix` | FLT_RADIX | radix of exponent representation |
+---------------------+----------------+--------------------------------------------------+ +---------------------+----------------+--------------------------------------------------+
| :const:`rounds` | FLT_ROUNDS | constant representing rounding mode | | :const:`rounds` | FLT_ROUNDS | integer constant representing the rounding mode |
| | | used for arithmetic operations | | | | 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. |
+---------------------+----------------+--------------------------------------------------+ +---------------------+----------------+--------------------------------------------------+
The attribute :attr:`sys.float_info.dig` needs further explanation. If The attribute :attr:`sys.float_info.dig` needs further explanation. If
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment