Float negative() is a float class method which checks whether the float value is negative.
Parameter: float value which is to be checked
Return: Boolean value return false – if value is positive and return true – if value is negative
a is negative : true b is negative : true c is negative : false
a is negative : true b is negative : false c is negative : true
Attention reader! Don’t stop learning now. Get hold of all the important DSA concepts with the DSA Self Paced Course at a student-friendly price and become industry ready.