| nordlead said: n is a float, so the suggested method above will not work because you cann't do a modulo operation on a floating point number. Is there a reason you are using a float? |
Not really, I just do it everytime, my mistake, probably could get plenty of errors in the future.
I already tried it, since it didn't work with a float I used an int and worked great.
BTW, since my question is done, could you lock this?







