Hi all,
Just a quick question: I wondering if there's some way to find if a number x is a multiple of the number y. I browsed through all the mathf functions, but to no avail. Is there anything I missed?
Thanks for your help!
Waffles
Hi all,
Just a quick question: I wondering if there's some way to find if a number x is a multiple of the number y. I browsed through all the mathf functions, but to no avail. Is there anything I missed?
Thanks for your help!
Waffles
Use mod/%. Atleast for Java, it uses % (mod).
equation = 10%2;
So,
if(equation == 0)
{
//do crap.
}
That'd be true... If that makes sense.