Any built-in function for smallest positive floating point number?
Xavier Ho
contact at xavierho.com
Tue Aug 11 21:38:08 EDT 2009
On Wed, Aug 12, 2009 at 3:29 AM, Maria Liukis <liukis at usc.edu> 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:
http://drj11.wordpress.com/2007/07/05/the-smallest-number/
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: <http://mail.python.org/pipermail/python-list/attachments/20090812/1144bcc7/attachment-0001.html>
More information about the Python-list
mailing list