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 {
Log.v ("result","your result number is not decimal")
}
How can I check if result is a decimal?
Use the modulus operator to check if there is a remainder.