I have very little experience with using the modulus operator in scripting/programming, but this should work:
if $game_variables[#] % 1 == 0
It checks if the remainder of dividing the variable by 1 is 0. If it is 0, then its a whole number. For example: 15 % 1 = 0 however 15.7 % 1 = 7. So anything that has a remainder is not a whole number.
I really hope that's right, is that right Shaz? Ugh. It should be...
if $game_variables[#] % 1 == 0
It checks if the remainder of dividing the variable by 1 is 0. If it is 0, then its a whole number. For example: 15 % 1 = 0 however 15.7 % 1 = 7. So anything that has a remainder is not a whole number.
I really hope that's right, is that right Shaz? Ugh. It should be...