[Numpy-discussion] float96 on windows32 is float64?

Ilan Schnell ischnell@enthought....
Fri Mar 16 00:17:08 CDT 2012


I'm seeing the same thing on both (64 and 32-bit) Windows
EPD test machines.  I guess Windows does not support 128
bit floats.
I did some tests a few weeks ago, and discovered that also
on the Mac and Linux long long double is not really 128 bits.
If I remember correctly it was 80 bits: 1 (sign) + 16 (exp) + 63 (mantissa)

- Ilan


On Thu, Mar 15, 2012 at 11:52 PM, Matthew Brett <matthew.brett@gmail.com> wrote:
> Hi,
>
> On Thu, Mar 15, 2012 at 9:41 PM, Val Kalatsky <kalatsky@gmail.com> wrote:
>> I does look like a joke.
>> Here is print np.finfo(np.longdouble)
>>
>> In [2]: np.__version__
>> Out[2]: '1.6.1'
>>
>> In [3]: np.flo
>> np.float        np.float32      np.float_       np.floor
>> np.float16      np.float64      np.floating     np.floor_divide
>>
>> In [3]: print np.finfo(np.longdouble)
>> Machine parameters for float64
>> ---------------------------------------------------------------------
>> precision= 15   resolution= 1e-15
>> machep=   -52   eps=        2.22044604925e-16
>> negep =   -53   epsneg=     1.11022302463e-16
>> minexp= -1022   tiny=       2.22507385851e-308
>> maxexp=  1024   max=        1.79769313486e+308
>> nexp  =    11   min=        -max
>> ---------------------------------------------------------------------
>
> Great - much easier on the eye - longdouble is float64 as expected.
>
> Thanks,
>
> Matthew
> _______________________________________________
> NumPy-Discussion mailing list
> NumPy-Discussion@scipy.org
> http://mail.scipy.org/mailman/listinfo/numpy-discussion


More information about the NumPy-Discussion mailing list