Cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted

comparing division result

Dear Community,

 

i need some help in something that (should) be simple: i have to divide two numbers. if the results of the division is an integer (for every value and not zero) than do something.

Any suggestions?

 

 

1 REPLY 1

Re: comparing division result

Phenom
Phenom

Have a look at the mod operator (modulo operation).

 

If modulo operation equals zero , then the division result is an integer.