man i tested your calc and goes more or less alright.
The problem is when the number is too big the calculator goes bang! and closes