Documentation

MathMod

The function returns the real remainder of division of two numbers.

double  MathMod(
   double  value,      // divident value
   double  value2      // divisor value
   );

Parameters

value

[in]  Dividend value.

value2

[in]  Divisor value.

Return Value

The MathMod function calsulates the real value of f of val / y such that val = i * y + f , where i is an integer, f has the same sign as val, and the absolute value of f is less than the absolute value of y.

Note

Instead of MathMod() you can use fmod().