By using the ASCII table, how do I convert user input in the terminal window from character to decimal? Here is a part of my code.
So my variable userInputChar is now seen as a character. But by the ASCII table, it is also a decimal value. How can I display that decimal value? Is there a character to decimal conversion function? I know this is a really newbie question, I am new to programming.
Thanks for any help.
Code:
sertxd("Waiting for user input: ", cr, lf)
serrxd #userInputChar ;the # sign means char
sertxd("The character you entered is ", #userInputChar, ". ")
Thanks for any help.