Robin Becker wrote:
Neal D. Becker wrote:
Is there a way in python to access properties of floats? I need
something
equiv to C DBL_EPSILON defined in .
you could try the traditional algorithm
>>> def dbl_epsilon():
... n = 0
... while 1:
... e = 1.0/2**n
... if (1.0+e==
Neal D. Becker wrote:
Is there a way in python to access properties of floats? I need something
equiv to C DBL_EPSILON defined in .
you could try the traditional algorithm
>>> def dbl_epsilon():
... n = 0
... while 1:
... e = 1.0/2**n
... if (1.0+e==1.0): break
...
Is there a way in python to access properties of floats? I need something
equiv to C DBL_EPSILON defined in .
--
http://mail.python.org/mailman/listinfo/python-list