From: Josef 'Jupp' Schugt Date: 2008-09-05T19:28:06+09:00 Subject: Re: how to read digits in a number On Fri, 05 Sep 2008 12:04:46 +0200, Pepe Sanchez wrote: > I would like to read all the characters in a string. For example > "123456" I need to read every digit separately. For strings use "123456".split(//) for integers "123456".split(//).map{|x| x.to_i} HTH, Josef 'Jupp' Schugt -- Blog: http://penpen.goodaddress.eu/ PGP key (id 6CC6574F): http://wwwkeys.de.pgp.net/ Jabber - http://www.jabber.org/ - contact information on request