[New-bugs-announce] [issue41822] Document the mean of values for sys.float_info.rounds

Raymond Hettinger report at bugs.python.org
Sun Sep 20 20:38:26 EDT 2020


New submission from Raymond Hettinger <raymond.hettinger at gmail.com>:

The current docs unnecessarily refer readers to the C99 standard. "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 docs should quote the standard, "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.

----------
assignee: docs at python
components: Documentation
keywords: newcomer friendly
messages: 377236
nosy: docs at python, rhettinger
priority: normal
severity: normal
status: open
title: Document the mean of values for sys.float_info.rounds

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue41822>
_______________________________________


More information about the New-bugs-announce mailing list