[New-bugs-announce] [issue1232] %f prints the wrong 6 decimal places
Kevin McKiou
report at bugs.python.org
Wed Oct 3 18:36:05 CEST 2007
New submission from Kevin McKiou:
>>> print "price is: %f" % 5.1234567
price is: 5.123457
I was testing the statement about "prints to 6 decimal places". Sure
enough, it printed only 6 decimal places, but it skipped over the 6th
decimal place and printed the 7th.
I am using Python version 2.5.1 and IDLE version 1.2.1
----------
components: Interpreter Core
messages: 56218
nosy: kmckiou
severity: major
status: open
title: %f prints the wrong 6 decimal places
type: behavior
versions: Python 2.5
__________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue1232>
__________________________________
More information about the New-bugs-announce
mailing list