guys, need help in creating simple division of integers, wherein, the quotient will always be in a whole number. thank you very much
So it will never be in a decimal or fraction?
Use the round block
https://ai2.appinventor.mit.edu/reference/blocks/math.html#round
yes AyProductions, the quotient must be a whole number.
So you will need two text boxes,a label and a button.
Get to work.
See the solution above I posted.
If it doesn't work, report us back.
according to https://www.quora.com/What-is-the-whole-number-that-can-divide-all-integers
All integers are divisible by 1.
Even integers are divisible by 2, and 2, 4, 6, 8, and 10 are even digits divisible by 2.
Integers ending in 0 are divisible by 10.
Integers ending in 5 or 0 are divisible by 5.
If you add all the digits in an integer and the sum is divisible by 3 then the integer is divisible by 3.
Integers are divisible by 7 if you can divide 7 into the number and have a 0 remainder. Also, with longer integers take the last digit, double it, and subtract it from the remaining number, and if this is divisible by 7 then the complete integer is divisible by 7.
Finally, integers are divisible by 9 if you add up all the digits and the sum is divisible by 9.
If you want to get the quotient, floor it. If you want to get the closest integer, round the answer.
I almost forgot floor and ceiling was a thing.
Not forgetting:
which will always return an integer.