From: "Peña, Botp" Date: 2008-05-12T17:48:40+09:00 Subject: Re: Convert integer to array? From: kaepora@mac.com [mailto:kaepora@mac.com] # Let's say I have: x=1234 # How can I convert that to the follow array: x=[1, 2, 3, 4] irb is friendly, just play w it.. "1234".split(//) #=> ["1", "2", "3", "4"] your next task is to convert those into integers, then you're good to go.. kind regards -botp