SIGN IN SIGN UP
python / cpython UNCLAIMED

The Python programming language

72125 0 1 Python

gh-87790: support thousands separators for formatting fractional part of floats (#125304)

```pycon
>>> f"{123_456.123_456:_._f}"  # Whole and fractional
'123_456.123_456'
>>> f"{123_456.123_456:_f}"    # Integer component only
'123_456.123456'
>>> f"{123_456.123_456:._f}"   # Fractional component only
'123456.123_456'
>>> f"{123_456.123_456:.4_f}"  # with precision
'123456.1_235'
```
S
Sergey B Kirpichev committed
f39a07be47cd9219eaf0e538ae32ad8239c88e66
Parent: fa6a814
Committed by GitHub <noreply@github.com> on 2/25/2025, 3:27:07 PM