Ruby Float positive() method with example
Float positive() is a float class method which checks whether the float value is positive. Syntax: float.positive() Parameter: float value which is to be checked Return: Boolean value return true - if value is positive or return false - if value is negative Example #1:Â Ruby # Ruby program for posit