Re: [Numpy-discussion] Formatting uint64 number

2009-11-05 Thread David Goldsmith
On Sun, Nov 1, 2009 at 8:49 PM, Charles R Harris charlesr.har...@gmail.comwrote: On Sun, Nov 1, 2009 at 8:37 PM, Thomas Robitaille thomas.robitai...@gmail.com wrote: Hello, I have a question concerning uint64 numbers - let's say I want to format a uint64 number that is 2**31, at the

Re: [Numpy-discussion] Formatting uint64 number

2009-11-01 Thread Charles R Harris
On Sun, Nov 1, 2009 at 8:37 PM, Thomas Robitaille thomas.robitai...@gmail.com wrote: Hello, I have a question concerning uint64 numbers - let's say I want to format a uint64 number that is 2**31, at the moment it's necessary to wrap the numpy number inside long before formatting In [3]:

[Numpy-discussion] Formatting uint64 number

2009-11-01 Thread Thomas Robitaille
Hello, I have a question concerning uint64 numbers - let's say I want to format a uint64 number that is 2**31, at the moment it's necessary to wrap the numpy number inside long before formatting In [3]: %40i % np.uint64(2**64-1) Out[3]: ' -1' In [4]: