Re: Convert ASCII code to equivalent numerical value
- Posted by alrobnett Jan 16, 2019
- 1039 views
Sorry Pete, but I have not been able to find out what you mean.
key -= 48
may be wrong, but it worked very well.
prompt_number()
is a big improvement, but the love of god did not help me understand
key -= '0'
In my case, would that have been
key -= '48'
If so, the purpose of the single quote is not obvious to me.