Change float type to npy_%(dtype)s