Re: float point properties access

2004-12-03 Thread Robin Becker
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==

Re: float point properties access

2004-12-03 Thread Robin Becker
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 ...

float point properties access

2004-12-03 Thread Neal D. Becker
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