Subject: RE: converting chars to numeric
From: "Jack Dempsey" <dempsejn georgetown.edu>
Date: Tue, 22 Jan 2002 06:56:41 +0900
In-reply-to: 31901
> Can someone tell me if there is a nice way to do the following:
>
> s = "4567"
> a = s[0] # --> I want the value '4' not '54', the
ASCII value of 4
> b = s[1] # --> 5
> a + b # --> 9
s[0..0]
Jack