> Ruby keeps complaining about my ".to_f" method. 

What does it say?

I thought initially that you could have some extra whitespace in your 
strings but it seems Ruby is pretty tolerant about this stuff:

irb(main):001:0> '5.0'.to_f
=> 5.0
irb(main):002:0> ' 5.0 '.to_f
=> 5.0
irb(main):003:0> ' 5.0a '.to_f
=> 5.0
irb(main):004:0> 'a5.0'.to_f
=> 0.0
-- 
Posted via http://www.ruby-forum.com/.