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

Maria Liukis liukis at usc.edu
Tue Aug 11 13:48:55 EDT 2009


A bit more of googling gave me an answer:

 >>> import numpy as np
 >>> np.finfo(np.double).tiny
array(2.2250738585072014e-308)
 >>>

Thanks,
Masha
--------------------
liukis at usc.edu



On Aug 11, 2009, at 10:29 AM, Maria Liukis 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.
>
> Any help would be greatly appreciated.
>
> Thanks,
> Masha
> --------------------
> liukis at usc.edu
>
>
>
> -- 
> http://mail.python.org/mailman/listinfo/python-list

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20090811/177ac970/attachment.html>


More information about the Python-list mailing list