By default Basic4Android transforms text to double variables and in this case the display is 2.0, or you display it with a given NumberFormat.
The best way to make calculations is to use the right variable type Int Float or Double and then show it in a Label.
If you add two Integer variables and show the result in a label it would display in your case 2.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.