What is the easiest way of converting a letter to integer in below fashion
A=1,
B=2,
C=3 ,
....
Z=26.
Also the small letter counterparts will have the same value is well, like "c" should also be equal to 3 and so on.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Ankit SharmaRank #141 · 16.1K reputationPosted Nov 7, 2017, 2:58 AM EST
Nilesh PatilRank #1,129 · 1.6K reputationPosted Nov 6, 2017, 9:16 PM EST
Ankit SharmaRank #141 · 16.1K reputationPosted Nov 6, 2017, 9:49 PM EST
Bhuvanesh MohankumarRank #310 · 8.1K reputationPosted Nov 7, 2017, 11:54 AM EST