Hey guys. I'm currently learning to use Android Studios, and I'm quite stuck. The exercise I'm doing is to create a calculator, with the buttons +,-,/. I am done with the calculator, and I've gotten it to work, except for one instance.
Whenever I put in a floating number, even with only one decimal, the program crashes. I experienced this when trying to divide by zero as well, which I solved by surrounding the code with try and catch.
However, I am clueless to what I should to get decimals to work. I would very much appreciate if you could take a look at my code and help me with this issue. My program contains a main java class, and a main xml_class. I'll post them down below: