July 23rd, 2003, 02:05 AM
Simple arithmetic based question
I'm working on a script right now, and basically I'm stuck at one point. I have figured out how to determine whether or not an interger is divisible by 2 (even %2), but I have yet to figure out how to determine if a number is divisible by another number.
Basically, I need to determine whether or not a number is divisible by 6.
An actual code example would be extremely helpful. Thanks in advance.
July 23rd, 2003, 07:35 AM
I think the solution could be found by doing mod 6 as you are doing for 2. 36%6 == 0. I hope this is helps
July 23rd, 2003, 11:04 AM
Yep, that did the trick. Thanks a lot that was exactly what I needed.