SKMath.Mod

static int Mod(int x, int mod)

   
int x Numerator
int mod Denominator
RETURNS: int x modulus mod

Modulus, works better than ‘%’ for negative values.




Found an issue with these docs, or have some additional questions? Create an Issue on Github!