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 vstinner
Recipients Serge Anuchin, mark.dickinson, rhettinger, serhiy.storchaka, skrah, steven.daprano, tim.peters, vstinner
Date 2015-07-02.14:44:49
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1435848289.52.0.779086567611.issue24546@psf.upfronthosting.co.za>
In-reply-to
Content
> Your example of int(0.99999999999999995) returning 1 is misleading

On my setup, this number is rounded 1.0:

>>> float('0.99999999999999995').hex()
'0x1.0000000000000p+0'

CPU: Intel(R) Core(TM) i7-2600 CPU @ 3.40GHz
OS: Fedora release 22
Python 2.7.10 or 3.4.2 (same result for both versions)
History
Date User Action Args
2015-07-02 14:44:49vstinnersetrecipients: + vstinner, tim.peters, rhettinger, mark.dickinson, steven.daprano, skrah, serhiy.storchaka, Serge Anuchin
2015-07-02 14:44:49vstinnersetmessageid: <1435848289.52.0.779086567611.issue24546@psf.upfronthosting.co.za>
2015-07-02 14:44:49vstinnerlinkissue24546 messages
2015-07-02 14:44:49vstinnercreate