El 7/31/08 5:31 PM, "Timothy J Miller" tmiller@mitre.org escribió:
On Jul 31, 2008, at 2:54 PM, Edgar J. De Cleene wrote:
But (2 raisedTo: 128) atRandom could genetate 49572205802560219958060582892667404289
and 49572205802560219958060582892667404289 hex also is wrong print '254B42724A9684000000000000000001'
Python 2.5.1 (r251:54863, Apr 15 2008, 22:57:26)
hex(49572205802560219958060582892667404289)
'0x254b42724a9684000000000000000001L'
Hmmm. Clearly I'm missing something.
-- Tim
Sorry by not thinking. Only see the 000000000000000001 end in your first and test 3.2 do same as 3.10 Once hex was removed from image ... http://bugs.squeak.org/view.php?id=6441 Edgar
The problem is not in hex (although there are problems trying to get a hex representation of a IEEE float, which might be useful to some people). The reason I fixed hex was that the deprecation actually caused several problems, as I discussed on Mantis.
John P Foster.