H
Harold Hausman
Hello all,
I tried searching the list for this, but didn't see the answer
anywhere. A lot of people trying to do the opposite, but..
I'd like to convert the Integer 585 to the string "1001001001"
I see from the docs for Fixnum#[] that I could hack something together:
30.downto(0) { |i| print 585 }
But sometimes you just *know* there's a better way...
Thanks in advance,
-Harold
I tried searching the list for this, but didn't see the answer
anywhere. A lot of people trying to do the opposite, but..
I'd like to convert the Integer 585 to the string "1001001001"
I see from the docs for Fixnum#[] that I could hack something together:
30.downto(0) { |i| print 585 }
But sometimes you just *know* there's a better way...
Thanks in advance,
-Harold