Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gh-99880: document rounding mode for new-style formatting #121481

Merged
merged 3 commits into from
Nov 2, 2024

Commits on Jul 8, 2024

  1. pythongh-99880: document rounding mode for new-style formatting

    The CPython uses _Py_dg_dtoa(), which does rounding to nearest with half
    to even tie-breaking rule.
    
    If that functions is unavailable, PyOS_double_to_string() fallbacks to
    system snprintf().  Since CPython 3.12, build requirements include C11
    compiler *and* support for IEEE 754 floating point numbers (Annex F).
    This means that FE_TONEAREST macro is available and, per default,
    printf-like functions should use same rounding mode as _Py_dg_dtoa().
    skirpichev committed Jul 8, 2024
    Configuration menu
    Copy the full SHA
    6801e73 View commit details
    Browse the repository at this point in the history

Commits on Sep 27, 2024

  1. Update Doc/library/string.rst

    Co-authored-by: Bénédikt Tran <[email protected]>
    skirpichev and picnixz authored Sep 27, 2024
    Configuration menu
    Copy the full SHA
    0ec4b9b View commit details
    Browse the repository at this point in the history

Commits on Oct 31, 2024

  1. Configuration menu
    Copy the full SHA
    16b1d16 View commit details
    Browse the repository at this point in the history