Char automatically converts to ASCII(problem)

Hi! I am using a lcd with arduino and trying to make a calculator. but when i am taking the input value and use this it automatically gets converted into ascii values. for example when i press 0 it performs the function but prints its ascii value 48. How can i solve this problem? please help.

calculator.ino (661 Bytes)

Start by properly posting your code with Code Tags as advised in the Forum Guidelines.

You can subtract 48 from the characters to convert them from ASCII to decimal. See www.asciitable.com to the different values.

That said, 3 characters coming in will have to be converted to one decimal. '3', '2', '5' for example will be converted as 3 x 100 + 2 x 10 + 5 to yield 325.