[Numpy-discussion] Really strange result
Christopher Barker
Chris.Barker@noaa....
Mon May 4 12:23:43 CDT 2009
Neal Becker wrote:
> In [3]: n=-7
>
> In [4]: (np.linspace (0, 1023,1024).astype(np.uint64)*n).dtype
> Out[4]: dtype('float64')
what would you like (expect) to happen when you multiply an unsigned
type by a negative number?
-Chris
--
Christopher Barker, Ph.D.
Oceanographer
Emergency Response Division
NOAA/NOS/OR&R (206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA 98115 (206) 526-6317 main reception
Chris.Barker@noaa.gov
More information about the Numpy-discussion
mailing list