float limits

Alexandre Fayolle alf at leo.logilab.fr
Wed Jan 30 04:44:00 EST 2002


Hi,

Is there a way of knowing what the value of the smallest positive float
available on a given machine from within python? A bit like sys.maxint, 
but for mindouble. Similarly, I'd like to know the value of the biggest
positive float, maxfloat. If the solution is portable, that's all the better.

TIA

Alexandre Fayolle
-- 
LOGILAB, Paris (France).
http://www.logilab.com   http://www.logilab.fr  http://www.logilab.org
Narval, the first software agent available as free software (GPL).



More information about the Python-list mailing list