[issue33730] string format 'n' produces numbers with incorrect precision

2018-06-01 Thread Eric V. Smith
Eric V. Smith added the comment: I'm going to close this. If you still think there's an issue, we can re-open it. -- assignee: -> eric.smith components: +Interpreter Core -Extension Modules resolution: -> not a bug stage: -> resolved status: open -> closed _

[issue33730] string format 'n' produces numbers with incorrect precision

2018-06-01 Thread Eric V. Smith
Eric V. Smith added the comment: 'n' is defined as the same as 'g', for floats (modulo the locale-specific characters, of course): >>> format(1.89, '.2n') '1.9' >>> format(1.89, '.2g') '1.9' -- ___ Python tracker

[issue33730] string format 'n' produces numbers with incorrect precision

2018-06-01 Thread Jakub Szewczyk
New submission from Jakub Szewczyk : Python 3.6.5 (v3.6.5:f59c0932b4, Mar 28 2018, 17:00:18) [MSC v.1900 64 bit (AMD64)] on win32 Type "help", "copyright", "credits" or "license" for more information. >>> print ("{:.2n}".format(1.89)) 1.9 >>> print ("{:.2f}".format(1.89)) 1.89 -- com