I create android app for dividing numbers.
int a,b; int result = a/b; if (result==decimal){ Log.v (\"result\",\"your result number is decimal\") } else {
Use the modulus operator to check if there is a remainder.
if(a % b != 0) Log.v("result", "The result is a decimal"); else Log.v("result", "The result is an integer");