-
class numpy.iinfo(type)
[source] -
Machine limits for integer types.
Parameters: int_type : integer type, dtype, or instance
The kind of integer data type to get information about.
See also
-
finfo
- The equivalent for floating point data types.
Examples
With types:
12345678910>>> ii16
=
np.iinfo(np.int16)
>>> ii16.
min
-
32768
>>> ii16.
max
32767
>>> ii32
=
np.iinfo(np.int32)
>>> ii32.
min
-
2147483648
>>> ii32.
max
2147483647
With instances:
12345>>> ii32
=
np.iinfo(np.int32(
10
))
>>> ii32.
min
-
2147483648
>>> ii32.
max
2147483647
Attributes
min
Minimum value of given dtype. max
Maximum value of given dtype. -
numpy.iinfo()

2025-01-10 15:47:30
Please login to continue.