From: Patrick Spence Date: 2006-11-17T23:55:15+09:00 Subject: Re: Nuby question - printing substring as non-ASCII Dmitry Buzdin wrote: > Then why not call to_i on a whole string? > > " 1 45.3456 ".to_i > " 1 45.3456 ".to_f > > It will find the first number and convert it to Fixnum or Float. > > Dmitry You're absolutely right, Dmitry... .strip() is not necessary. But I tend to be a bit anal-retentive about such things :o|