[New-bugs-announce] [issue33730] string format 'n' produces numbers with incorrect precision

Jakub Szewczyk report at bugs.python.org
Fri Jun 1 06:21:24 EDT 2018


New submission from Jakub Szewczyk <jakub.szewczyk at gmail.com>:

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

----------
components: Extension Modules
messages: 318388
nosy: Jakub Szewczyk, eric.smith
priority: normal
severity: normal
status: open
title: string format 'n' produces numbers with incorrect precision
type: behavior
versions: Python 3.6

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue33730>
_______________________________________


More information about the New-bugs-announce mailing list