Articles → Numpy → signbit function in numpy

signbit function in numpy






Purpose





Example


import numpy as np

print("Is -12.5 negative:", np.signbit(-12.5))
print("Is 12.5 negative:", np.signbit(12.5))



Output



Click to Enlarge


Posted By  -  Karan Gupta
 
Posted On  -  Thursday, June 06, 2019

Query/Feedback


Your Email Id  
 
Subject 
 
Query/FeedbackCharacters remaining 250