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.

Author rhettinger
Recipients Au Vo, rhettinger
Date 2019-02-18.20:35:46
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1550522146.13.0.225842407925.issue36028@roundup.psfhosted.org>
In-reply-to
Content
I get the same results in both Python 2 and Python 3.

Python 2.7.15 (v2.7.15:ca079a3ea3, Apr 29 2018, 20:59:26) 
[GCC 4.2.1 Compatible Apple LLVM 6.0 (clang-600.0.57)] on darwin
Type "copyright", "credits" or "license()" for more information.
>>> 4 / 0.4
10.0
>>> 4 // 0.4
9.0
>>> 4 % 0.4
0.3999999999999998
>>> divmod(4, 0.4)
(9.0, 0.3999999999999998)


Python 3.7.2 (v3.7.2:9a3ffc0492, Dec 24 2018, 02:44:43) 
[Clang 6.0 (clang-600.0.57)] on darwin
Type "help", "copyright", "credits" or "license()" for more information.
>>> 4 / 0.4
10.0
>>> 4 // 0.4
9.0
>>> 4 % 0.4
0.3999999999999998
>>> divmod(4, 0.4)
(9.0, 0.3999999999999998)
History
Date User Action Args
2019-02-18 20:35:46rhettingersetrecipients: + rhettinger, Au Vo
2019-02-18 20:35:46rhettingersetmessageid: <1550522146.13.0.225842407925.issue36028@roundup.psfhosted.org>
2019-02-18 20:35:46rhettingerlinkissue36028 messages
2019-02-18 20:35:46rhettingercreate