Float#zero() : zero() is a float class method which checks whether the float value is zero.
Parameter:float value which is to be checked
Return: Boolean value return true if value is zero otherwise return false
a is zero : true b is zero : true c is zero : false
a is zero : false b is zero : false
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.