From: Hassan Schroeder Date: 2011-03-18T03:26:04+09:00 Subject: Re: no implicit conversion to float from string On Thu, Mar 17, 2011 at 11:09 AM, stephanie borg wrote: > I have this program where there is float numbers in x and y Are you sure? >        x = a[1] >        y = a[2] puts x.class puts y.class > Ruby is giving me this error: > > # > > I tried to do x = a[1].to_s but still give me the same error Then it seems like you'd want to do `x= a[1].to_f` instead, yes? -- Hassan Schroeder ------------------------ hassan.schroeder@gmail.com twitter: @hassan