Author christian.heimes
Recipients christian.heimes
Date 2007-12-01.01:22:15
SpamBayes Score 0.00112548
Marked as misclassified No
Message-id <1196472136.65.0.997837511396.issue1534@psf.upfronthosting.co.za>
In-reply-to
Content
Currently Python has no information about the maximum and minimum value
of a float. The patch adds a dict with all important information to sys:

>>> pprint.pprint(sys.maxfloat)
{'dig': 15,
 'epsilon': 2.2204460492503131e-16,
 'mant_dig': 53,
 'max': 1.7976931348623157e+308,
 'max_10_exp': 308,
 'max_exp': 1024,
 'min': 2.2250738585072014e-308,
 'min_10_exp': -307,
 'min_exp': -1021,
 'radix': 2,
 'rounds': 1}

The patch compiles on Linux and Windows.
Files
File name Uploaded
trunk_maxfloat.patch christian.heimes, 2007-12-01.01:22:15
History
Date User Action Args
2007-12-01 01:22:16christian.heimessetspambayes_score: 0.00112548 -> 0.00112548
recipients: + christian.heimes
2007-12-01 01:22:16christian.heimessetspambayes_score: 0.00112548 -> 0.00112548
messageid: <1196472136.65.0.997837511396.issue1534@psf.upfronthosting.co.za>
2007-12-01 01:22:16christian.heimeslinkissue1534 messages
2007-12-01 01:22:15christian.heimescreate