I would like to convert a char to its ASCII int value.
I could fill an array with all possible values and compare to that, but it doesn't seems right to me. I would like something like
char mychar = "k"
public int ASCItranslate(char c)
ASCItranslate(k) // >> Should return 107 as that is the ASCII value of 'k'.
char mychar = 'k'; public int ASCItranslate(char c) return int(c); ASCItranslate(k); // >> should return 107 as that is the ascii value of k