Re: Convert ASCII code to equivalent numerical value

new topic     » goto parent     » topic index » view thread      » older message » newer message
alrobnett said...

key -= 48 Is there a more sanitary way?

For the single-character case, for the love of god please, instead of that do this:

 key -= '0' 
new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu