Push button cursor position

PaulS:
You ARE defining it correctly. At least as correctly as you can when you want to store a non-integer value in an integer array. Therefore, there must be some other problem.

It doesn't make sense to me to go from '8' to '9' to '.'. But, if that IS what you want, why isn't the array of possible values of type char, and why doesn't it contain '0', '1', '2', ... '8', '9', '.'?

Because I would need to convert char to int again as the input is going to be used in a calculation.
Should this work?

int number[11] = {0,1,2,3,4,5,6,7,8,9,'/46'};

I can't check at the moment..

Thanks.