[Numpy-discussion] What type should / return in python 3kwhenapplied to two integer types?
Charles R Harris
Thu Aug 27 14:25:29 CDT 2009
2009/8/27 Nadav Horesh <email@example.com>
> How about making this arch dependent translation:
> short int -> float
> int -> double
> long int -> long double
> or adding a flag that would switch between the above translation to the
> option that would produce only doubles.
> For some computing projects I made I would prefer the first option: There I
> used huge array, and could not afford having extra precision of the account
> of memory consumption. Currently I do a lot of (8 and 16 bits) image
> processing, memory size is not a problem, and it feels nice not to worry
> about precision (think about the bad habits of Matlab users).
I really want to avoid long double. My hope is that some day it will always
be quad precision on ieee machines and then it will be a more universal
type. But that day is still in the (far?) future.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the NumPy-Discussion