How to check if the result of a division is an integer and, depending on it, do the analog of if else construction in other languages? I\'ve tried subtracting one int from a