From: James Edward Gray II Date: 2007-04-04T23:04:18+09:00 Subject: Re: Question - Numbers & Variables On Apr 4, 2007, at 8:50 AM, Phrogz wrote: > On Apr 3, 2:11 pm, James Edward Gray II > wrote: >>> puts 'Well this ' + num + ' might be better.' >> >> # now we need to go back to a String so we can concatenate >> puts 'Well this ' + num.to_s + ' might be better.' > > Also, I usually find it more convenient to use string interpolation, > as it implicitly calls the to_s method on the value inside it: > puts "Well this #{num} might be better." Me too, but Learn To Program doesn't teach that (I wish it did!) and I didn't want to confuse the issue. ;) James Edward Gray II