MathMod function

 
MathMod function in version 4 is returning only the integer portion. This is inconsistent with the mod function in version 3 which returned the entire value.
 
My mistake, I forgot my c and was operating with an integer. Easily fixed with a double.
Reason: