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


Picture showing the output of signbit function in numpy
Click to Enlarge


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

Query/Feedback


Your Email Id
 
Subject
 
Query/FeedbackCharacters remaining 250