Might give some strange behaviour though:

"1$".to_f             => 1.0
"nonsense".to_f       => 0.0
"nanotubes".to_f      => Nan ?
"inferiority".to_f    => Inf ?
-- 
Posted via http://www.ruby-forum.com/.