Formatting a str as a number
Grant Edwards
grant.b.edwards at gmail.com
Tue Aug 27 17:39:21 EDT 2024
On 2024-08-27, Gilmeh Serda via Python-list <python-list at 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
More information about the Python-list
mailing list