Saturday, November 22, 2025
HomeLanguagesnumpy.iinfo() function – Python

numpy.iinfo() function – Python

numpy.iinfo() function shows machine limits for integer types.

Syntax : numpy.iinfo(dtype)

Parameters :
dtype : [integer type, dtype, or instance] The kind of integer data type to get information about.
Return : Machine limits for integer types.

Code #1 :




# Python program explaining
# numpy.iinfo() function
           
# importing numpy as geek 
import numpy as geek 
       
gfg = geek.iinfo(geek.int16)
     
print (gfg)


Output :

Machine parameters for int16
---------------------------------------------------------------
min = -32768
max = 32767
---------------------------------------------------------------

 
Code #2 :




# Python program explaining
# numpy.iinfo() function
           
# importing numpy as geek 
import numpy as geek 
       
gfg = geek.iinfo(geek.int32)
     
print (gfg)


Output :

Machine parameters for int32
---------------------------------------------------------------
min = -2147483648
max = 2147483647
---------------------------------------------------------------
Dominic
Dominichttp://wardslaus.com
infosec,malicious & dos attacks generator, boot rom exploit philanthropist , wild hacker , game developer,
RELATED ARTICLES

Most Popular

Dominic
32407 POSTS0 COMMENTS
Milvus
97 POSTS0 COMMENTS
Nango Kala
6784 POSTS0 COMMENTS
Nicole Veronica
11931 POSTS0 COMMENTS
Nokonwaba Nkukhwana
11999 POSTS0 COMMENTS
Shaida Kate Naidoo
6907 POSTS0 COMMENTS
Ted Musemwa
7168 POSTS0 COMMENTS
Thapelo Manthata
6863 POSTS0 COMMENTS
Umr Jansen
6848 POSTS0 COMMENTS