Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit b1e58fe

Browse files
committed
Issue #12245: Document sys.float_info.rounds better.
1 parent fabf027 commit b1e58fe

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

Doc/library/sys.rst

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -296,8 +296,12 @@ always available.
296296
+---------------------+----------------+--------------------------------------------------+
297297
| :const:`radix` | FLT_RADIX | radix of exponent representation |
298298
+---------------------+----------------+--------------------------------------------------+
299-
| :const:`rounds` | FLT_ROUNDS | constant representing rounding mode |
300-
| | | used for arithmetic operations |
299+
| :const:`rounds` | FLT_ROUNDS | integer constant representing the rounding mode |
300+
| | | used for arithmetic operations. This reflects |
301+
| | | the value of the system FLT_ROUNDS macro at |
302+
| | | interpreter startup time. See section 5.2.4.2.2 |
303+
| | | of the C99 standard for an explanation of the |
304+
| | | possible values and their meanings. |
301305
+---------------------+----------------+--------------------------------------------------+
302306

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

0 commit comments

Comments
 (0)