Rest of Division

My journey through :sk: continue, and I don’t know if I missed the information or if :sk: just don’t have a way to get the rest of division, like the classic “&” in C++. :thinking:
After reading the primer multiple time in the Math Operation section I can’t get information regarding this !

You mean the modulus operator % from c++? If so, Integer.mod is what you are looking for, you can also access the :ue4: MathLib.fmod which is a floating point modulus.

101.mod(100) // returns 1
some_integer.mod(other_integer) // example with variables
1 Like