[Numpy-discussion] np.longlong casts to int

Mark Wiebe mwwiebe@gmail....
Thu Feb 23 12:45:21 CST 2012


On Thu, Feb 23, 2012 at 10:42 AM, Matthew Brett <matthew.brett@gmail.com>wrote:

> Hi,
>
> On Thu, Feb 23, 2012 at 10:11 AM, Pierre Haessig
> <pierre.haessig@crans.org> wrote:
> > Le 23/02/2012 17:28, Charles R Harris a écrit :
> >> That's correct. They are both extended precision (80 bits), but
> >> aligned on 32bit/64bit boundaries respectively. Sun provides a true
> >> quad precision, also called float128, while on PPC long double is an
> >> odd combination of two doubles.
> > This is insane ! ;-)
>
> I don't know if it's insane, but it is certainly very confusing, as
> this thread the previous one show.
>
> The question is, what would be less confusing?
>

One approach would be to never alias longdouble as float###. Especially
float128 seems to imply that it's the IEEE standard binary128 float, which
it is on some platforms, but not on most.

Cheers,
Mark


>
> Best,
>
> Matthew
> _______________________________________________
> NumPy-Discussion mailing list
> NumPy-Discussion@scipy.org
> http://mail.scipy.org/mailman/listinfo/numpy-discussion
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.scipy.org/pipermail/numpy-discussion/attachments/20120223/d73c4546/attachment.html 


More information about the NumPy-Discussion mailing list