From: Yukihiro Matsumoto Date: 2008-05-20T17:16:17+09:00 Subject: Re: Why is Array#to_f not defined? Hi, In message "Re: Why is Array#to_f not defined?" on Tue, 20 May 2008 17:05:04 +0900, Fredrik writes: |Ruby (1.8.6) seems to be missing numeric conversion methods for |Arrays : #to_f converts the receiver to the float itself. |class Array | def to_f | self.map { |i| i.to_f } | end |end The above code converts the elements in the array. That should be named differently. Surely this is the reason. Try ary.map(&:to_f) if you have newer Ruby. matz.