number (REXML::Functions)

    # File temp/functions.rb, line 327
        def Functions::number( object=nil )
          object = @@node unless object
          if object == true
            Float(1)
          elsif object == false
            Float(0)
          elsif object.kind_of? Array
            number(string( object ))
          elsif object.kind_of? Float
            object
          else
            str = string( object )
            #puts "STRING OF #{object.inspect} = #{str}"
            if str =~ /^\d+/
              object.to_s.to_f
            else
              (0.0 / 0.0)
            end
          end
        end