Friday, October 17, 2025
HomeLanguagesnumpy.maximum_sctype() function – Python

numpy.maximum_sctype() function – Python

numpy.maximum_sctype() function return the scalar type of highest precision of the same kind as the input.

Syntax : numpy.maximum_sctype(t)

Parameters :
t : [dtype or dtype specifier] The input data type. This can be a dtype object or an object that is convertible to a dtype.
Return : [dtype] The highest precision data type of the same kind as the input.

Code #1 :




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


Output :

class 'numpy.int64'

 
Code #2 :




# Python program explaining
# numpy.maximum_sctype() function
            
# importing numpy as geek 
import numpy as geek 
  
gfg = geek.maximum_sctype('f4')
  
print (gfg)


Output :

class 'numpy.float128'
Dominic
Dominichttp://wardslaus.com
infosec,malicious & dos attacks generator, boot rom exploit philanthropist , wild hacker , game developer,
RELATED ARTICLES

Most Popular

Dominic
32361 POSTS0 COMMENTS
Milvus
88 POSTS0 COMMENTS
Nango Kala
6728 POSTS0 COMMENTS
Nicole Veronica
11892 POSTS0 COMMENTS
Nokonwaba Nkukhwana
11954 POSTS0 COMMENTS
Shaida Kate Naidoo
6852 POSTS0 COMMENTS
Ted Musemwa
7113 POSTS0 COMMENTS
Thapelo Manthata
6805 POSTS0 COMMENTS
Umr Jansen
6801 POSTS0 COMMENTS