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

Matthew Brett matthew.brett@gmail....
Wed Oct 26 10:52:32 CDT 2011


Hi,

On Wed, Oct 26, 2011 at 1:07 AM, Nathaniel Smith <njs@pobox.com> wrote:
> On Tue, Oct 25, 2011 at 4:49 PM, Matthew Brett <matthew.brett@gmail.com> wrote:
>> I guess from your answer that such a warning would be complicated to
>> implement, and if that's the case, I can imagine it would be low
>> priority.
>
> I assume the problem is more that it would be a weirdo check that
> becomes a maintenance burden ("what is this doing here? Do we still
> need it? who knows?") than that it would be hard to do.
>
> You can easily do it yourself as a workaround...
>
> if not str(np.longdouble(2)**64 - 1).startswith("1844"):
>  warn("Printing of longdoubles is fubared! Beware! Beware!")

Thanks - yes - I was only thinking of someone like me getting confused
and thinking badly of us if they run into this.

See you,

Matthew


More information about the NumPy-Discussion mailing list