*This function gives the remainder of the number after dividing with some number.
*This function gives the remainder of the number after dividing with some number.
−
*When we divide two integers we will get the result like this: X/Y= Q with remainder <math>R</math>. Here <math> X </math> is the dividend, <math>Y</math> is the divisor, <math>Q</math> is the Quotient and <math> R</math> is the remainder.So <math> MOD(n,d)=R</math>.
+
*When we divide two integers we will get the result like this: X/Y= Q with remainder <math>R</math>. Here <math> X </math> is the dividend, <math>Y</math> is the divisor, <math>Q</math> is the Quotient and <math> R</math> is the remainder.So <math> MOD(n,d)=R</math>.
*For e.g., MOD(5,2)=1. Here 1 is the remainder.
*For e.g., MOD(5,2)=1. Here 1 is the remainder.
*The <math>MOD</math> function we can write using <math>INT</math> function: <math> MOD(n,d)=n-d*INT(n/d)</math>.
*The <math>MOD</math> function we can write using <math>INT</math> function: <math> MOD(n,d)=n-d*INT(n/d)</math>.