class documentation

iinfo(type)

Machine limits for integer types.

See Also

finfo
The equivalent for floating point data types.

Examples

With types:

>>> ii16 = np.iinfo(np.int16)
>>> ii16.min
-32768
>>> ii16.max
32767
>>> ii32 = np.iinfo(np.int32)
>>> ii32.min
-2147483648
>>> ii32.max
2147483647

With instances:

>>> ii32 = np.iinfo(np.int32(10))
>>> ii32.min
-2147483648
>>> ii32.max
2147483647
Parameters
int_typeThe kind of integer data type to get information about.
Method __init__ Undocumented
Method __repr__ Undocumented
Method __str__ String representation.
Instance Variable bits The number of bits occupied by the type.
Instance Variable dtype Returns the dtype for which iinfo returns information.
Instance Variable key Undocumented
Instance Variable kind Undocumented
Property max Maximum value of given dtype.
Property min Minimum value of given dtype.
Class Variable _max_vals Undocumented
Class Variable _min_vals Undocumented
def __init__(self, int_type): (source)

Undocumented

def __repr__(self): (source)

Undocumented

def __str__(self): (source)

String representation.

The number of bits occupied by the type.

Returns the dtype for which iinfo returns information.

Undocumented

Undocumented

Maximum value of given dtype.

Minimum value of given dtype.

_max_vals: dict = (source)

Undocumented

_min_vals: dict = (source)

Undocumented