I checked the size of a pointer in my python terminal (in Enthought Canopy IDE) via
import ctypes print (ctypes.sizeof(ctypes.c_voidp) * 8) I've a 64bit architecture and working with numpy.float64 is just fine. But I cannot use np.float128?
np.array([1,1,1],dtype=np.float128) or
np.float128(1) results in:
AttributeError: 'module' object has no attribute 'float128' I'm running the following version:
sys.version_info(major=2, minor=7, micro=6, releaselevel='final', serial=0)
float128(while on others it's reported asfloat96). But all that's going on there is that you have an 80-bit format with 48 bits (or 16 bits) of padding.np.longdoubleresults innp.float64long doubleto be the same type asdouble, sonp.longdoubledoesn't give you any extra precision.