08-10-2012 09:38 AM
My goal is to convert a character (for exaple 'A') to the decimal ascii value ( = 65).
Im aware that I have to use Character.digit('A',int radius); But my question is: what does the radius value have to be to get 65 returned? I tried 10 (decimal) but I get always -1 returned.
And yes, I googled. But nothing.
Solved! Go to Solution.
08-10-2012 09:48 AM
08-11-2012 03:38 AM
int myint = (int) mychar;
//Do whatever you want with it!