From: Teodor Carstea Date: 2009-12-16T17:24:33+09:00 Subject: Re: a program error Zhao Lu wrote: > it appears that yspeed is "", which implies speed from gets is not what > you expect it to be. puts speed after you gets it and see. The answer is speed = gets.to_s puts speed gave integer, but puts xspeed(and yspeed too) gave "". You were about right. I fell so stupid... Thanks! -- Posted via http://www.ruby-forum.com/.