[Numpy-discussion] What type should / return in python 3k whenapplied to two integer types?

Nadav Horesh nadavh@visionsense....
Thu Aug 27 13:32:10 CDT 2009


Double is the natural choice, there is a possibility of long double (float96 on x86 or float128 on amd64) where there is no precision loss. Is this option portable?

   Nadav


-----הודעה מקורית-----
מאת: numpy-discussion-bounces@scipy.org בשם Charles R Harris
נשלח: ה 27-אוגוסט-09 21:24
אל: numpy-discussion
נושא: [Numpy-discussion] What type should / return in python 3k whenapplied to two integer types?
 
I'm thinking double. There is a potential loss of precision for 64 bit ints
but nothing else seems reasonable for a default. Thoughts?

Chuck

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/ms-tnef
Size: 3216 bytes
Desc: not available
Url : http://mail.scipy.org/pipermail/numpy-discussion/attachments/20090827/3afdcfef/attachment.bin 


More information about the NumPy-Discussion mailing list