From: "Peña, Botp" Date: 2008-05-20T17:13:34+09:00 Subject: Re: Why is Array#to_f not defined? From: Fredrik [mailto:fredjoha@gmail.com] # Ruby (1.8.6) seems to be missing numeric conversion methods for # Arrays : # class Array # def to_f # self.map { |i| i.to_f } # end # end # (and the same for to_i) # Did somebody forget to include that? :) Surely there is no reason to # NOT have this method for the Array class. you assume arrays contain numbers only ?? try it eg on, %w(this is a test) [[],[[]],nil,Object.new] kind regards -botp