Converting Char to its Numerical value without using getNumericValue

Viewed 134

Is there any algorithm that could possibly substitute getNumericValue in converting a character to its numerical value such as 'a' = 1 'b' = 2 and so on? Thank you in advance!

3 Answers
Related