From: James Britt Date: 2007-07-18T05:31:39+09:00 Subject: Re: type conversion Shandy Nantz wrote: > So there is an to_s for strings and a to_i for integers. However, if I > have an array of integers and I want to grab one, I get back and ASCII > character. Are you sure you have an array of integers? Show some code. > For example, when I grab a 1 from the array it returns a 49 - > but I wanted the one! How do I convert it back to its integer > want-to-be? Thanks, > This works for me: # Create int array, 11 to 19 # the * expands the range into an array a = *11..19 # print it to see what we have p a # See what we have at the first location p a[0] # I get 11 -- James Britt "Take eloquence and wring its neck." - Paul Verlaine