Any built-in function for smallest positive floating point number?

Xavier Ho contact at
Wed Aug 12 03:38:08 CEST 2009

On Wed, Aug 12, 2009 at 3:29 AM, Maria Liukis <liukis at> wrote:

> Hello everybody,
> Is somebody aware of built-in Python's function that would return
> a value for smallest positive double precision floating point number
> (analogous to 'realmin' in Matlab). Python has built-in sys.maxint but I
> could not find anything for float.

I'm not sure if this helps, but here you go:

I couldn't get it to work on Python 2.6.2 or 3.1 myself, however it seems
pretty small.

- Xav
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the Python-list mailing list