[Numpy-discussion] Products of small float32 values.

Dave Cook daverz at gmail.com
Wed Oct 2 21:20:56 EDT 2013


On Wed, Oct 2, 2013 at 6:06 PM, Matthew Brett <matthew.brett at gmail.com>wrote:

>
>
> Is it possible you are thinking of 2**-126 rather than 10**-126?
>
>
Yup, brainfart...



> In [3]: print np.finfo(np.float32)
> Machine parameters for float32
> ---------------------------------------------------------------------
> precision=  6   resolution= 1.0000000e-06
> machep=   -23   eps=        1.1920929e-07
> negep =   -24   epsneg=     5.9604645e-08
> minexp=  -126   tiny=       1.1754944e-38
> maxexp=   128   max=        3.4028235e+38
> nexp  =     8   min=        -max
> ---------------------------------------------------------------------
>

Thanks for that.

Dave Cook
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/numpy-discussion/attachments/20131002/92dcec91/attachment.html>


More information about the NumPy-Discussion mailing list