From: Daniel Berger Date: 2003-02-26T04:18:17+09:00 Subject: Re: type conversion Thomas Jollans wrote: > How do you do (explicit) type conversion in ruby? I just want to make > /"2" + "3" = 5/ , but it, of course, gives me /"23"/ and not /5/. > > Thomas Jollans "2".to_i + "3".to_i Regards, Dan -- a = [74, 117, 115, 116, 32, 65, 110, 111, 116, 104, 101, 114, 32, 82] a.push(117,98, 121, 32, 72, 97, 99, 107, 101, 114) puts a.pack("C*")