Machine limits for integer types.
Parameters : | type : integer type, dtype, or instance
|
---|
See also
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
Attributes
min(a[, axis, out]) | Return the minimum of an array or minimum along an axis. |
max(a[, axis, out]) | Return the maximum of an array or maximum along an axis. |