Mod
This function returns the modulus. The modulus operation divides num by div until num is less than div. This is useful for values that wrap, like the number of minutes on the hour.
Syntax
- static double Mod(const double num, const double div)
Parameters
- num: the number to calculate.
- div: the value to wrap around.
Returns
Returns the modulus.