[Numpy-discussion] type info
Pearu Peterson
pearu at cens.ioc.ee
Mon Sep 1 05:57:03 EDT 2003
On Mon, 1 Sep 2003, Peter Verveer wrote:
> Is there some way in numarray to find out what the maximum and minimum values
> are that a type can hold? For instance, is there a convenient way to find out
> what the maximal possible value of the Float32 type is?
I am not completely sure what is behind of the following way but
>>> numarray.fromstring('\xff\xff\x7f\x7f','f')
array([ 3.40282347e+38], type=Float32)
seems to give the maximum value for Float32.
Pearu
More information about the NumPy-Discussion
mailing list