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 rhettinger
Date 2008-02-01.19:45:00
SpamBayes Score 0.31965658
Marked as misclassified No
Message-id <1201895102.84.0.505025801473.issue1996@psf.upfronthosting.co.za>
In-reply-to
Content
Just before the sign bit is restored, add code with the following effect:

    while not top&1:
        top >>= 1
        e += 1

Tests: 
  math.pi --> (884279719003555, 281474976710656)
  7.5 --> (15, 2)
  0.875 --> (7, 8)
History
Date User Action Args
2008-02-01 19:45:03rhettingersetspambayes_score: 0.319657 -> 0.31965658
recipients: + rhettinger
2008-02-01 19:45:02rhettingersetspambayes_score: 0.319657 -> 0.319657
messageid: <1201895102.84.0.505025801473.issue1996@psf.upfronthosting.co.za>
2008-02-01 19:45:01rhettingerlinkissue1996 messages
2008-02-01 19:45:00rhettingercreate