[New-bugs-announce] [issue28717] rounding error in % operator

William McIlhagga report at bugs.python.org
Wed Nov 16 15:10:59 EST 2016


New submission from William McIlhagga:

'%.1f' % 0.25          yields the string '0.2'

'%.1f' % 0.75          yields the string '0.8'

This is wrong.

----------
messages: 280984
nosy: William McIlhagga
priority: normal
severity: normal
status: open
title: rounding error in % operator
type: behavior
versions: Python 2.7

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue28717>
_______________________________________


More information about the New-bugs-announce mailing list