Splitting an integer
#3

I'm a little confused myself right now, but I don't think that loop is going to work at all. When you format the number into a string, the string itself will hold the ASCII representation of the number, not the number itself.
pawn Код:
new string[] = "123456";
new string[] = {'1', '2', '3', '4', '5', '6'};
new string[] = {49, 50, 51, 52, 53, 54};
Those would all have the same meaning. So you'd need to subtract 48 to get the actual number.
Reply


Messages In This Thread
Splitting an integer - by Daddy Yankee - 17.07.2013, 11:25
Re: Splitting an integer - by IstuntmanI - 17.07.2013, 11:29
Re: Splitting an integer - by Vince - 17.07.2013, 11:43
Re: Splitting an integer - by Daddy Yankee - 17.07.2013, 11:49

Forum Jump:


Users browsing this thread: 1 Guest(s)