S
Shandy Nantz
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. 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,
~S
P.S. I imagine this is probably an easy solution but, I am a ruby
newbie.
have an array of integers and I want to grab one, I get back and ASCII
character. 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,
~S
P.S. I imagine this is probably an easy solution but, I am a ruby
newbie.