Re: Formatting a str as a number

Liste des GroupesRevenir à cl python 
Sujet : Re: Formatting a str as a number
De : grant.b.edwards (at) *nospam* gmail.com (Grant Edwards)
Groupes : comp.lang.python
Date : 27. Aug 2024, 22:39:21
Autres entêtes
Message-ID : <mailman.12.1724794762.2917.python-list@python.org>
References : 1 2 3 4 5
User-Agent : slrn/1.0.3 (Linux)
On 2024-08-27, Gilmeh Serda via Python-list <python-list@python.org> wrote:
On 25 Aug 2024 15:46:25 GMT, Stefan Ram wrote:
>
f"{int(number):>20,}"
>
Great. Thanks. Do you have a link to where that's documented?
>
I did web search, found nothing.

https://docs.python.org/3/library/string.html#formatspec
https://docs.python.org/3/reference/lexical_analysis.html#f-strings


Date Sujet#  Auteur
25 Aug 24 * Re: Formatting a str as a number10Stefan Ram
25 Aug 24 `* Re: Formatting a str as a number9Stefan Ram
27 Aug 24  +- Re: Formatting a str as a number1Stefan Ram
27 Aug 24  `* Re: Formatting a str as a number7Grant Edwards
31 Aug 24   +* Re: Formatting a str as a number - Okay, one more related thing...4Stefan Ram
31 Aug 24   i`* Re: Formatting a str as a number - Okay, one more related thing...3Stefan Ram
31 Aug 24   i +- Re: Formatting a str as a number - Okay, one more related thing...1Stefan Ram
1 Sep 24   i `- Re: Formatting a str as a number (Posting On Python-List Prohibited)1Lawrence D'Oliveiro
31 Aug 24   +- Re: Formatting a str as a number - Okay, one more related thing...1MRAB
2 Sep 24   `- Re: Formatting a str as a number - Okay, one more related thing...1dn

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal