[issue38025] format

2019-09-04 Thread Eric V. Smith
Eric V. Smith added the comment: When you convert the integer to a float (because of the 'f' in the first format spec), you're losing precision. See: https://docs.python.org/3/tutorial/floatingpoint.html and https://docs.python.org/3/faq/design.html#why-are-floating-point-calculations-so-ina

[issue38025] format

2019-09-04 Thread Daniel Futterweit
New submission from Daniel Futterweit : f'{10001323121:,.0f}' returns: '10,000,000,000,000,001,761,595,319,084,122,112' f'{10001323121:,}' returns: '10,000,000,000,000,001,323,120,000,000,000,001' -- _

[issue38025] format

2019-09-04 Thread Daniel Futterweit
Change by Daniel Futterweit : -- nosy: Daniel_Python priority: normal severity: normal status: open title: format type: behavior versions: Python 3.7 ___ Python tracker ___ ___