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 tim.peters
Recipients Serge Anuchin, mark.dickinson, rhettinger, steven.daprano, tim.peters
Date 2015-07-02.05:19:00
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1435814341.25.0.634700580934.issue24546@psf.upfronthosting.co.za>
In-reply-to
Content
FYI, where x = 1.0 - 2.**-53, I believe it's easy to show this under IEEE double precision arithmetic:

For every finite, normal, double y > 0.0,

    IEEE_multiply(x, y) < y

under the default (nearest/even) rounding mode.  That implies

    int(x*i) < i

for every int i > 0 representable as an IEEE double (including monstrous ints like 123456789 << 300).

Which makes your output _extremely_ surprising, Steven ;-)
History
Date User Action Args
2015-07-02 05:19:01tim.peterssetrecipients: + tim.peters, rhettinger, mark.dickinson, steven.daprano, Serge Anuchin
2015-07-02 05:19:01tim.peterssetmessageid: <1435814341.25.0.634700580934.issue24546@psf.upfronthosting.co.za>
2015-07-02 05:19:01tim.peterslinkissue24546 messages
2015-07-02 05:19:00tim.peterscreate