Is there any way to find out if the division of two integers is another integer?
I'm asking because this is what I need (roughly illustrated):
So, for hero's level, let's say, 6, this would give us 6/3=2, which is an integer, and the rest of the code would fire, but if the hero is level 7, 7/3=2.333 which is a real, and the rest of the code would not fire.
Help pl0x?
I'm asking because this is what I need (roughly illustrated):
If [(Hero's Level) / 3 = Integer], then (do some stuff, blah blah...)
So, for hero's level, let's say, 6, this would give us 6/3=2, which is an integer, and the rest of the code would fire, but if the hero is level 7, 7/3=2.333 which is a real, and the rest of the code would not fire.
Help pl0x?