]> granicus.if.org Git - python/commitdiff
Issue #12245: Document sys.float_info.rounds better.
authorMark Dickinson <mdickinson@enthought.com>
Sat, 19 Nov 2011 16:26:08 +0000 (16:26 +0000)
committerMark Dickinson <mdickinson@enthought.com>
Sat, 19 Nov 2011 16:26:08 +0000 (16:26 +0000)
Doc/library/sys.rst

index 80f4cd7260cb5d5c7cdd65238cc04b255aa7b871..a8b62da3c46d537d9777cdd8bac308c77c526f32 100644 (file)
@@ -328,8 +328,12 @@ always available.
    +---------------------+----------------+--------------------------------------------------+
    | :const:`radix`      | FLT_RADIX      | radix of exponent representation                 |
    +---------------------+----------------+--------------------------------------------------+
-   | :const:`rounds`     | FLT_ROUNDS     | constant representing rounding mode              |
-   |                     |                | used for arithmetic operations                   |
+   | :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.              |
    +---------------------+----------------+--------------------------------------------------+
 
    The attribute :attr:`sys.float_info.dig` needs further explanation.  If