[Numpy-discussion] float128 / longdouble on PPC - is it broken?

Matthew Brett matthew.brett at gmail.com
Tue Oct 25 15:22:06 EDT 2011


Hi,

On Tue, Oct 25, 2011 at 12:14 PM, Pauli Virtanen <pav at iki.fi> wrote:
> 25.10.2011 20:29, Matthew Brett kirjoitti:
> [clip]
>> In [7]: (res-1) / 2**32
>> Out[7]: 8589934591.9999999998
>>
>> In [8]: np.float((res-1) / 2**32)
>> Out[8]: 4294967296.0
>
> Looks like a bug in the C library installed on the machine, then.
>
> It's either in wontfix territory for us, or in the "cast to doubles
> before formatting" one. In the latter case, one would have to maintain a
> list of broken C libraries (ugh).

How about a check at import time and a warning when printing?  Is that
hard to do?

See you,

Matthew



More information about the NumPy-Discussion mailing list