Push button cursor position

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

You are going to have to deal with the elephant in the room at some point, anyway. Now seems like a good time.

Should this work?

No. The escape character is , not /. Storing \46, 46, or '.' in the array will have the same result.