Hi Ben,Thanks for the solution for calculator!My calculator has a backspace key for the users to delete away any number that they may key in wrongly. That's why I need to trim the last character. Anyway I had managed to do that by calling a javascript function.