lib/object.rb
# Return true if the object can be converted to a valid float.
Return true if the object can be converted to a valid float.
Return true if the object can be converted to a valid float .
def valid_float?
    begin
      Float(self)
      true
    rescue ArgumentError
      false
    end 
  end
def valid_float? begin Float ( self ) true rescue ArgumentError false end end
Return true if the object can be converted to a valid float.
Return true if the object can be converted to a valid float .