[Tutor] float_info
Kent Johnson
kent37 at tds.net
Mon Jan 21 17:59:29 CET 2008
This is probably of interest to Dick Moores at least...
From What's New in Python 2.6
http://docs.python.org/dev/whatsnew/2.6.html
[Note: A release date has not been set for Python 2.6]
A new variable in the sys module, float_info, is an object containing
information about the platform’s floating-point support derived from the
float.h file. Attributes of this object include mant_dig (number of
digits in the mantissa), epsilon (smallest difference between 1.0 and
the next largest value representable), and several others. (Contributed
by Christian Heimes.)
Kent
More information about the Tutor
mailing list