[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}"

[issue33731] string formatting that produces floats with preset precision while respecting locale

2018-06-01 Thread Jakub Szewczyk
New submission from Jakub Szewczyk : .2f produces a string representation of a float rounded up to 2 significant digits. >>> print ("{:.2f}".format(1.891)) 1.89 However, it does not respect locale. There is no counterpart of 'f' that would respect locale.