Re: Convert ASCII code to equivalent numerical value
- Posted by irv Jan 16, 2019
- 1048 views
alrobnett said...
Thanks, Chris and Pete. I finally found the pertinent info in the manual by searching for "character". Interestingly, the manual states that the single quotes make it possible to use the character without having to know the ASCII code. I went the other way around, which seems clearer. It is not obvious to me why god has a preference.
Neither He nor the interpreter care.
This does, in some small way, help you when you later look at your code. Using the single quotes around a character indicates to you that you meant to deal with characters, not numbers, per se.
And, of course, if they ever decide to change the ASCII codes... well, you'd be prepared :)