[New-bugs-announce] [issue18133] Modulus not calculating properly?

Joshua report at bugs.python.org
Tue Jun 4 19:10:34 CEST 2013


New submission from Joshua:

The Modulus doesn't seem to pull the proper remainder from simple calculations.  Look at the difference below between the remainder of a regular division calculation and the modulus:
Am I missing something???


>>> print (str(10.2 / 2))
5.1
>>> print (str(10.2 % 2))
0.1999999999999993
>>>

----------
components: Windows
messages: 190606
nosy: pccreator25
priority: normal
severity: normal
status: open
title: Modulus not calculating properly?
type: behavior
versions: Python 3.3

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


More information about the New-bugs-announce mailing list