Sebastian Hungerecker wrote: > > Yes, arrays don't have a to_f method (since arrays usually contain > multiple > elements and it would be strange to turn that into one single number). > If you use [] like I showed above, you will have a string, which will > have a > to_f method, so this will work. > > > HTH, > Sebastian This is very cool, what you've shown me here. I've never used the String#[] nomenclature before, especially, with the number argument in it. It's so simple! Thanks! -- Posted via http://www.ruby-forum.com/.