For a simple calculation like:
1+1 = 2.0
I'm not sure how to get rid of the unnecessary .0
after the 2
integer, even though I'm working with a double variable as my output.
So, 1.1 + 1 = 2.1
is acceptable.
My output code looks like this:
double total = 1+1;
output.setText(String.valueOf(total));