extracting hex mant+exp from double?

Mike C. Fletcher mcfletch at home.com
Sun Jun 10 01:34:03 EDT 2001


It's a bleeding anonymous magic variable man!  Who let that into the
language!  The variable is _magic_ I say.  Wizardry! Sorcery!  Appearing
without explicit assignment!
Pact-with-the-devil-and-dancing-at-midnight-curses-and-hexes! Spawn-of-PERL!
Magic, I say!

[I spent 2 minutes trying to figure out why you were translating 0, what
language you were using (base-2-eese?), and what special meaning 0 had for
translation tables.  How did I miss something so... icky... getting added?]

Ick,
Mike

-----Original Message-----
From: python-list-admin at python.org
[mailto:python-list-admin at python.org]On Behalf Of Tim Peters
Sent: June 10, 2001 00:13
To: python-list at python.org
Subject: RE: extracting hex mant+exp from double?
...
>>> math.frexp(.1)
(0.80000000000000004, -3)
>>> m = _[0]
...





More information about the Python-list mailing list