This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Modulus not calculating properly?
Type: behavior Stage:
Components: Windows Versions: Python 3.3
process
Status: closed Resolution: works for me
Dependencies: Superseder:
Assigned To: Nosy List: pccreator25
Priority: normal Keywords:

Created on 2013-06-04 17:10 by pccreator25, last changed 2022-04-11 14:57 by admin. This issue is now closed.

Messages (2)
msg190606 - (view) Author: Joshua (pccreator25) Date: 2013-06-04 17:10
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
>>>
msg190607 - (view) Author: Joshua (pccreator25) Date: 2013-06-04 17:44
never mind, long day sorry!
History
Date User Action Args
2022-04-11 14:57:46adminsetgithub: 62333
2013-06-04 17:44:11pccreator25setstatus: open -> closed
resolution: works for me
messages: + msg190607
2013-06-04 17:10:34pccreator25create