New submission from Raymond Hettinger <raymond.hettin...@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@python components: Documentation keywords: newcomer friendly messages: 377236 nosy: docs@python, rhettinger priority: normal severity: normal status: open title: Document the mean of values for sys.float_info.rounds _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue41822> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com