Re: [Numpy-discussion] np.finfo().maxexp confusing

2011-10-11 Thread Matthew Brett
Hi, On Tue, Oct 11, 2011 at 2:39 PM, Matthew Brett wrote: > Hi, > > I realize it is probably too late to do anything about this, but: > > In [72]: info = np.finfo(np.float32) > > In [73]: info.minexp > Out[73]: -126 > > In [74]: info.maxexp > Out[74]: 128 > > minexp is correct, in that 2**(-126)

[Numpy-discussion] np.finfo().maxexp confusing

2011-10-11 Thread Matthew Brett
Hi, I realize it is probably too late to do anything about this, but: In [72]: info = np.finfo(np.float32) In [73]: info.minexp Out[73]: -126 In [74]: info.maxexp Out[74]: 128 minexp is correct, in that 2**(-126) is the minimum value for the exponent part of float32. But maxexp is not correct