Hi,
On Tue, Oct 11, 2011 at 3:20 PM, Colin J. Williams
wrote:
> If you are using integers, why not use Python's Long?
You mean, why do I need to know the next lowest representable integer
in a float type?
It's because I have a floating point array that I'm converting to
integers, and I'm trying
If you are using integers, why not use Python's Long?
Colin W.
On 11/10/2011 2:00 PM, Matthew Brett wrote:
Hi,
Can anyone think of a clever way to round an integer to the next
lowest integer represented in a particular floating point format?
For example:
In [247]: a = 2**25+3
This is out of
Hi,
Can anyone think of a clever way to round an integer to the next
lowest integer represented in a particular floating point format?
For example:
In [247]: a = 2**25+3
This is out of range of the continuous integers representable by float32, hence:
In [248]: print a, int(np.float32(a))
33554